npm:no such file /usr/local/lib/node_modules/vue-cli/node_modules/get-stream
Mac 使用安装vue-cli脚手架的时候报错npm ERR! path /usr/local/lib/node_modules/vue-cli/node_modules/get-streamnpm ERR! code ENOENTnpm ERR! errno -2npm ERR! syscall accessnpm ERR! enoent ENOENT: no such file ...
Mac 使用安装vue-cli脚手架的时候报错
npm ERR! path /usr/local/lib/node_modules/vue-cli/node_modules/get-stream
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/usr/local/lib/node_modules/vue-cli/node_modules/get-stream'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoentnpm ERR! A complete log of this run can be found in:
npm ERR! /Users/gaocuili/.npm/_logs/2018-11-21T03_05_31_520Z-debug.log
解决方案:
1、切换到/usr/local/lib/node_modules/目录
cd /usr/local/lib/node_modules/
2、删除vue-cli文件夹
open /usr/local/lib/node_modules/
然后删除
3、重新安装vue-cli
vue-cli $ npm install --global vue-cli
更多推荐
所有评论(0)