问答详情
源自:4-1 vue-cli的简介与使用

这是为何啊失败了

npm ERR! path C:\Users\Public_Account\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\_apollo-codegen-typescript@0.39.3@apollo-codegen-typescript\node_modules\@babel\generator\node_modules\.bin\jsesc.ps1

npm ERR! Refusing to delete C:\Users\Public_Account\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\_apollo-codegen-typescript@0.39.3@apollo-codegen-typescript\node_modules\@babel\generator\node_modules\.bin\jsesc.ps1: ../../../../_jsesc@2.5.2@jsesc/bin/jsesc symlink target is not controlled by npm C:\Users\Public_Account\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\_apollo-codegen-typescript@0.39.3@apollo-codegen-typescript\node_modules\@babel\generator\node_modules\jsesc

npm ERR! File exists: C:\Users\Public_Account\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\_apollo-codegen-typescript@0.39.3@apollo-codegen-typescript\node_modules\@babel\generator\node_modules\.bin\jsesc.ps1

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!     C:\Users\Public_Account\AppData\Roaming\npm-cache\_logs\2021-03-17T08_09_41_176Z-debug.log


C:\Users\Public_Account>

http://img3.mukewang.com/6051ba750001bb9919100748.jpg




提问者:慕慕爱学习呀 2021-03-17 16:15

个回答

  • young明
    2021-04-13 16:03:05

    尝试运行npm update -g npm然后再次运行npm i。

    如果这不起作用,npm cache clean可能有帮助。

    如果这不起作用,您应该考虑删除应用程序中的node_modules文件夹并再次运行npm install