当前位置: 移动技术网 > IT编程>脚本编程>vue.js > vue踩坑记-在项目中安装依赖模块npm install报错

vue踩坑记-在项目中安装依赖模块npm install报错

2019年07月23日  | 移动技术网IT编程  | 我要评论

侏罗纪公园2快播,iisadmin.mfl,毛利率净利率

在维护别人的项目的时候,在项目文件夹中安装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或者直接在在项目文件夹中删除

然后再重新npm install 安装

重新npm install 安装结果如下:

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

以上所述是小编给大家介绍的vue踩坑记-在项目中安装依赖模块npm install报错详解整合,希望对大家有所帮助

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网