在ubuntu上装了node.js后,npm install hexo-cli -g 提示没装npm,怎么办
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
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
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