报错信息:
新建好的vue项目,可以运行 但是当我要安装 vue-router
的时候报错
npm ERR! code EACCES npm ERR! syscall access npm ERR! path /Users/thinker/node_modules/_extglob@2.0.4@extglob/node_modules/extend-shallow npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/Users/thinker/node_modules/_extglob@2.0.4@extg
解决方法:
1、删除node_modules
文件夹
2、重新运行 npm install
3、再次执行npm install vue-router --save-dev
至此,大功告成