通过NPM无法安装Vue CLI脚手架项目

时间:2019-02-15 16:43:47

标签: vue.js npm

我正在尝试通过Vue.li初始化vue.js项目,它向我显示以下错误:

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/4a/3e'

在许多其他类似消息中,例如:

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/37/5a'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/94/48'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/c0/e4'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/6b/83'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/92/77'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/d8/cf'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/81/71'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/b5/ad'

Unhandled rejection Error: EISDIR: illegal operation on a directory, open '/var/root/.npm/_cacache/content-v2/sha512/e8/79'

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/root/.npm/_logs/2019-02-15T16_32_21_678Z-debug.log

我尝试了许多解决方案,例如卸载并重新安装Vue.cli,清理缓存,并且还卸载了以前项目中的Angular cli。他们的节点似乎起作用。有什么解决方法的线索吗?

0 个答案:

没有答案