在ubuntu上装了node.js后,npm install hexo-cli -g 提示没装npm,怎么办
高洛峰
高洛峰 2017-04-17 13:08:06
0
2
586

在ubuntu上装了node.js后,npm install hexo-cli -g 提示没装npm,怎么办

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
大家讲道理

Is nodejs pretending to be disabled?

You can view the global installation path via
npm config get prefix
,
via
npm config set prefix=path

阿神

If you use apt-get install nodejs npm, you need to install it separately
Official installation instructions

NOTE: If you are using Ubuntu Precise or Debian Wheezy, you might want to read about running Node.js >= 4.x on older distros.
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs
Alternatively, for Node.js v6:
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template