扫码关注官方订阅号
在ubuntu上装了node.js后,npm install hexo-cli -g 提示没装npm,怎么办
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
是不是nodejs 装残了?
你可以通过npm config get prefix查看全局安装路径,通过npm config set prefix=路径
如果使用apt-get install nodejs npm 需要单独装官方有安装介绍
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
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
是不是nodejs 装残了?
你可以通过
npm config get prefix
查看全局安装路径,
通过
npm config set prefix=路径
如果使用apt-get install nodejs npm 需要单独装
官方有安装介绍