继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

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

祈澈姑娘
关注TA
已关注
手记 56
粉丝 1.4万
获赞 118

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

图片.png
图片.png

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 安装
图片.png

重新npm install 安装结果如下:

图片.png

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

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP