es6 sudo npm install webpack --save-devPassword:npm ERR! Darwin 15.6.0npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "webpack" "--save-dev"npm ERR! node v6.9.1npm ERR! npm v3.10.8npm ERR! code MODULE_NOT_FOUNDnpm ERR! Cannot find module 'github-url-from-git'npm ERR!npm ERR! If you need help, you may report this error at:npm ERR! https://github.com/npm/npm/is...npm ERR! Please include the following file with any support request:npm ERR! /Users/derek/Documents/myProject/es6/npm-debug.log不知道(Cannot find module 'github-url-from-git')要怎么解决,请高手帮忙看看
1 回答
噜噜哒
TA贡献1784条经验 获得超7个赞
sudo 命令是一般是全局安装用的,--save和--save-dev一般当前项目下安装用的。
先试试不要sudo安装
npm install webpack --save-dev
还报错就升级一下npm再试试
sudo npm -g install npm@latest
添加回答
举报
0/150
提交
取消