我想安装https://github.com/kangax/html-minifier。
但是在使用npm install html-minifier之后,我得到了这样的消息:
bash: npm: command not found我使用的是Debian9Stretch和apt-get install的nodejs。我试图通过安装nodejs来解决我的问题-遗留和构建-基本,但什么都没有改变。如果我使用nodejs -v,我会得到v4.8.2。我以前从来没有用过nodejs,我哪里错了?
发布于 2017-11-20 19:14:04
尝试使用'sudo apt-get install npm‘安装npm,它应该可以工作。您还可以通过nvm (https://github.com/creationix/nvm)安装node js。
它会自动为你安装npm。
https://stackoverflow.com/questions/47390431
复制相似问题