npm 安装vue脚手架报错

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\@vue\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! path C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\abbrev
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-03-11T06_37_13_073Z-debug.log
  • npm install -g @vue/cli 安装vue-cli 3报错
  • 安装淘宝镜像,用cnpm install -g @vue/cli命令安装就可解决问题
发布了3 篇原创文章 · 获赞 0 · 访问量 379

猜你喜欢

转载自blog.csdn.net/sinat_34239886/article/details/104796760