Vue项目中npm install安装依赖模块时遇到报错,如何解决这个大坑?

2026-04-09 03:012阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计396个文字,预计阅读时间需要2分钟。

Vue项目中npm install安装依赖模块时遇到报错,如何解决这个大坑?

在维护他人项目时,安装npm模块遇到以下错误:

`+ npm ERR! path D:\ShopApp\node_modules\fsevents\node_modules\abbrev+ npm ERR! code ENOENT+ npm ERR! errno -4058+ npm ERR! syscall access`

解决方法如下:

1. 检查文件路径是否正确。

2.确认`fsevents`模块与你的系统兼容。

3.尝试全局安装`fsevents`模块:

npm install -g fsevents

4.尝试使用`--unsafe-perm`选项安装:

npm install --unsafe-perm

在维护别人的项目的时候,在项目文件夹中安装npm install模块的时候,报错如下:

npm ERR! path D:\ShopApp\node_modules\fsevents\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 'D:\ShopApp\node_modules\fsevents\node_modules\abbrev'
npm ERR! enoent This 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:\Program Files\nodejs\node_cache\_logs\2018-08-01T02_35_44_300Z-debug.log

解决办法:

将no such file or directory,access中指明的文件路径中的node_modules删除:
rm -r node_modules或者直接在在项目文件夹中删除

Vue项目中npm install安装依赖模块时遇到报错,如何解决这个大坑?

然后再重新npm install 安装

重新npm install 安装结果如下:

这个时候就可以启动项目,打开运行项目了

以上所述是小编给大家介绍的vue踩坑记-在项目中安装依赖模块npm install报错详解整合,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对自由互联网站的支持!

本文共计396个文字,预计阅读时间需要2分钟。

Vue项目中npm install安装依赖模块时遇到报错,如何解决这个大坑?

在维护他人项目时,安装npm模块遇到以下错误:

`+ npm ERR! path D:\ShopApp\node_modules\fsevents\node_modules\abbrev+ npm ERR! code ENOENT+ npm ERR! errno -4058+ npm ERR! syscall access`

解决方法如下:

1. 检查文件路径是否正确。

2.确认`fsevents`模块与你的系统兼容。

3.尝试全局安装`fsevents`模块:

npm install -g fsevents

4.尝试使用`--unsafe-perm`选项安装:

npm install --unsafe-perm

在维护别人的项目的时候,在项目文件夹中安装npm install模块的时候,报错如下:

npm ERR! path D:\ShopApp\node_modules\fsevents\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 'D:\ShopApp\node_modules\fsevents\node_modules\abbrev'
npm ERR! enoent This 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:\Program Files\nodejs\node_cache\_logs\2018-08-01T02_35_44_300Z-debug.log

解决办法:

将no such file or directory,access中指明的文件路径中的node_modules删除:
rm -r node_modules或者直接在在项目文件夹中删除

Vue项目中npm install安装依赖模块时遇到报错,如何解决这个大坑?

然后再重新npm install 安装

重新npm install 安装结果如下:

这个时候就可以启动项目,打开运行项目了

以上所述是小编给大家介绍的vue踩坑记-在项目中安装依赖模块npm install报错详解整合,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对自由互联网站的支持!