在ArchLinux上无法安装 #49
Replies: 5 comments 10 replies
|
同问题,bun 安装正常。 bun add --global @deepseek-ai/dsh问题是 node-pty 在 npm 这个安装下没有被信任(无法执行自己的 install 安装脚本),你可以自己手动安装一遍 node-pty 试试,bun 安装时 node-pty 在白名单里面,所以默认会被信任。 但是 bun 有可能找不到合适的 linux 预编译二进制,需要自己构建,构建时需要 base-devel 包,如果你用 aur 应该是默认有的,没有的话 如果继续使用 npm,且已经安装失败了一次,执行 |
Require stack:
- /home/vagrant/.npm/_npx/1e7f6d9597241db0/node_modules/**node-pty**/lib/utils.jssolution: npm install -g node-pty |
|
This is a sudo pacman -S --needed base-devel python
npm_config_build_from_source=true npx --yes @deepseek-ai/dsh@0.1.0-rc.6 webIf it still fails, please share the npm/node-gyp installation output. A global |
|
我也遇到了安装失败 $ npx @deepseek-ai/dsh web
Need to install the following packages:
@deepseek-ai/dsh@0.1.0-rc.6
Ok to proceed? (y)
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException insteadWindows 11 node 24.19.0 |
|
先用npm i -g @deepseek-ai/dsh 下载,然后等到npm报warning之后运行最后一行的后面那个命令,就是npm config set allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty,@google/genai,protobufjs --location=user,然后重新运行npm i -g @deepseek-ai/dsh,就安装完毕了 |
Uh oh!
There was an error while loading. Please reload this page.
node: v26.7.0
log:
All reactions