大佬教程收集整理的这篇文章主要介绍了npm install -g angular-cli sh:1:node:not found,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
npm install -g @angular/cli
试图在ubuntu 16.10中安装angular-cli,我在sass上遇到以下错误.
/home/user1/.npm-packages/bin/ng -> /home/user1/.npm-packages/lib/node_modules/@angular/cli/bin/ng > node-sass@4.5.0 install /home/user1/.npm-packages/lib/node_modules/@angular/cli/node_modules/node-sass > node scripts/install.js sh: 1: node: not found /home/user1/.npm-packages/lib └── (empty) npm WARN optional Skipping Failed optional dependency /@angular/cli/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.17 npm WARN @angular/core@2.4.6 requires a peer of rxjs@^5.0.1 but none was installed. npm ERR! Linux 4.8.0-22-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "@angular/cli" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! node-sass@4.5.0 install: `node scripts/install.js` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the node-sass@4.5.0 install script 'node scripts/install.js'.
注意:我在新机器上,第一次设置npm / angular.
sudo ln -s /usr/bin/nodejs /usr/bin/node
以上是大佬教程为你收集整理的npm install -g angular-cli sh:1:node:not found全部内容,希望文章能够帮你解决npm install -g angular-cli sh:1:node:not found所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。