npm install & npm run dev [1] 78185 > dev > ray develop…
- User
User: npm install & npm run dev [1] 78185 > dev > ray develop /Users/shaohengshi/Library/CloudStorage/OneDrive-sjtu.edu.cn/Raycast/customExtensions/da-kai-duo-wang-zhan/node_modules/.bin/ray: line 1: ../@raycast/api/bin/run.js: No such file or directory up to date, audited 93 packages in 1s 16 packages are looking for funding run
npm fundfor details 1 low severity vulnerability To address all issues, run: npm audit fix Runnpm auditfor details. [1] + done npm install Assistant: The error message you're encountering:/Users/shaohengshi/Library/CloudStorage/OneDrive-sjtu.edu.cn/Raycast/customExtensions/da-kai-duo-wang-zhan/node_modules/.bin/ray: line 1: ../@raycast/api/bin/run.js: No such file or directoryindicates that the
rayexecutable script in yournode_modules/.bindirectory is trying to reference a file (../@raycast/api/bin/run.js) that does not exist. This usually happens for one of these reasons:Possible Causes and Solutions
-
Missing or Incorrect Dependency Installation
It appears that
@raycast/apieither isn’t installed properly or its package files are missing. Run:npm install @raycast/apito ensure that this dependency is installed.
-
Corrupted
node_modulesorpackage-lock.jsonSometimes dependency mismatches or corrupted installs cause this.
-
Delete
node_modulesandpackage-lock.json:rm -rf node_modules package-lock.json -
Then reinstall all dependencies fresh:
npm install
-
-
Dependency Version Mismatch
Make sure the version of
@raycast/apireferenced in yourpackage.jsonmatches what’s expected by your project or theraybinary script. -
File System or Path Issues
Since your path includes OneDrive cloud storage, sometimes symlinks or bin scripts might misbehave if OneDrive sync is interfering.
-
Try to move your project directory out of OneDrive, like somewhere local on your disk:
~/Projects/da-kai-duo-wang-zhan -
Then try installing and running again.
-
-
- Assistant
Mac 打开远程登录(也就是启用 SSH 服务)在安全性上是可以的,但要做好相应的配置和防护,才能保证安全。以下是详细说明和建议:
1. 远程登录是什么?
- Mac 的 远程登录 是通过 SSH 协议,让你能够从其他设备远程连接到这台 Mac,执行命令或管理系统。
- 这是一个常用且安全的远程访问方式,只要配置得当。
2. 打开远程登录是否安全?
默认情况下,SSH 本身是安全的,它使用加密通道保证数据传输安全,不会明文传输密码,也不会轻易被窃听。
但安全性取决于配置和使用习惯:
- 开启远程登录后,相当于开放了电脑的一个 TCP 端口(默认 22 端口)对外监听。
- 如果使用弱密码、默认端口或者不加限制,可能会被暴力破解、扫描、甚至攻击。
3. 如何让远程登录更安全
建议采取以下措施:
a. 使用强密码
- 确保你的 Mac 用户账户密码复杂且强壮,防止暴力破解。
b. 使用 SSH 密钥登录
- 关闭密码登录,改用 SSH 公钥认证。
- 这样即使有人知道用户名,没私钥也无法登录。
c. 修改默认端口
- SSH 默认使用 22 端口,容易被扫描。
- 你可以修改端口号(例如改成 2222),增加安全层次。
(macOS 里修改配置文件位于
/etc/ssh/sshd_config中)d. 限制允许登录的用户