小编Orl*_*ena的帖子

bash:npm:在Debian 9.3中找不到命令

我正在使用Debian 9.3.(拉伸)我无法运行"npm"命令.

输出为 node -v

bash: node: command not found
Run Code Online (Sandbox Code Playgroud)

输出为 nodejs -v

v4.8.2
Run Code Online (Sandbox Code Playgroud)

输出为 npm -v

bash: npm: command not found
Run Code Online (Sandbox Code Playgroud)

我是Debian的新手,我无法理解发生了什么.
- 我已经重新安装了Node.js
- 我已经尝试过遵循官方页面的步骤了.
- 我已经运行了apt-get install npm输出E: Unable to locate package npm.
- 我在Debian Testing时遇到了同样的错误.

感谢阅读和帮助
- Melt

debian node.js npm debian-stretch

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

debian ×1

debian-stretch ×1

node.js ×1

npm ×1