您的位置:首页 > Web前端 > Vue.js

vue-cli(npm install webpack webpack-cli vue-cli -g)安装时报错

2019-01-21 13:04 621 查看

install时报错:

npm ERR! path D:\Program Files\nodejs\node_global\node_modules\webpack\node_modules\ajv-errors
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\Program Files\nodejs\node_global\node_modules\webpack\node_modules\ajv-errors'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

如下图:

解决:
1、在本地找到报错内容提到的access后面的目录,然后把node_modules删除掉
2、重新install,就可以了

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: