简体   繁体   English

无法安装@vue/cli

[英]Unable to install @vue/cli

My OS is windows 7 and node is 12.14.0 and npm is 6.13.4 .And when I am installing npm i @vue/cli -g with or without --bin-no-links I am getting the same following error stated in image.我的操作系统是 windows 7,节点是 12.14.0 和 npm 是 6.13.4 。当我安装 npm 我@vue/cli -g 有或没有 --bin-no-links 我得到相同的以下错误图片。 What's going wrong, please help.怎么回事,求帮忙。

C:\Users\dell>npm install -g @vue/cli
npm ERR! code EIO
npm ERR! syscall open
npm ERR! path C:\Users\dell\AppData\Roaming\npm-cache\_cacache\index-v5\b7\c2\76
e1d8e353f98ab50b58e3c229f2621357d7a9690c95e0a48ff52b96bf68
npm ERR! errno -4070
npm ERR! EIO: i/o error, open 'C:\Users\dell\AppData\Roaming\npm-cache\_cacache\
index-v5\b7\c2\76e1d8e353f98ab50b58e3c229f2621357d7a9690c95e0a48ff52b96bf68'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dell\AppData\Roaming\npm-cache\_logs\2020-01-26T13_43_42_5
86Z-debug.log

Do

npm cache clean --force

to clean the cache and after that, to try again清理缓存,然后再试一次

npm install -g @vue/cli

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM