【发布时间】:2018-05-03 13:53:26
【问题描述】:
我要安装https://github.com/kangax/html-minifier。
但在使用npm install html-minifier 后,我收到消息:
bash: npm: command not found
我正在使用 Debian 9 拉伸并通过 apt-get install 获得了 nodejs。
我试图通过安装 nodejs-legacy 和 build-essential 来解决我的问题,但没有任何改变。
如果我使用nodejs -v,我会得到v4.8.2。
之前没用过nodejs,怎么了?
【问题讨论】:
标签: node.js linux bash npm npm-install