A complete log of this run can be found in: npm ERR! C:\Users\pc\AppData\Roaming\npm-cache\_logs
如果我们在cmd中出现标题那种错误,或者说:npm ERR! code EEXISTnpm ERR! path D:\nodejs\node_global\node_modules\@vue\cli\bin\vue.jsnpm ERR! dest D:\nodejs\node_global\vuenpm ERR! EEXIST: file already exists, cmd shim 'D:\
·
如果我们在cmd中出现标题那种错误,或者说:
npm ERR! code EEXIST
npm ERR! path D:\nodejs\node_global\node_modules\@vue\cli\bin\vue.js
npm ERR! dest D:\nodejs\node_global\vue
npm ERR! EEXIST: file already exists, cmd shim 'D:\nodejs\node_global\node_modules\@vue\cli\bin\vue.js' -> 'D:\nodejs\node_global\vue'
npm ERR! File exists: D:\nodejs\node_global\vue
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! D:\nodejs\node_cache\_logs\2020-12-14T05_41_53_499Z-debug.log
类似这种错误,这串代码跟我出的错误一样,我借用一下,我忘了保存了。你可以尝试这样做
把:
这两个文件夹删掉,再重新 npm install 然后再npm install -g @vue/cli 就行,也是亲测有效。这两个问题我弄了好长时间,分享给大家。晚安,我要睡觉去啦
更多推荐
已为社区贡献7条内容
所有评论(0)