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

如下图:
vue-cli(npm install webpack webpack-cli vue-cli -g)安装时报错
vue-cli(npm install webpack webpack-cli vue-cli -g)安装时报错

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

相关文章:

  • 2021-11-23
  • 2021-10-07
  • 2021-08-06
  • 2021-05-23
  • 2021-12-09
  • 2021-12-01
  • 2021-09-15
  • 2021-12-04
猜你喜欢
  • 2021-08-06
  • 2021-07-16
  • 2022-01-05
  • 2021-11-07
  • 2021-10-29
  • 2021-05-17
  • 2021-07-23
相关资源
相似解决方案