如何在愚蠢地取消它后重新安装npm?

时间:2018-02-11 11:11:32

标签: node.js linux ubuntu npm

我是新手,我愚蠢地卸载了我的版本5.6.0 npm而没有取消我的nodejs(版本8.9.4)。当我尝试重新安装npm时,它显示为“bash:/ usr / bin / npm:没有这样的文件或目录”。我正在使用Ubuntu 16.04

任何建议都会有所帮助。 谢谢。

1 个答案:

答案 0 :(得分:0)

尝试

sudo apt-get install nodejs

可能会重新安装npm。

下载并运行此脚本

https://www.npmjs.com/install.sh

从github获取

https://github.com/npm/npm

相关问题