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

               

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

npm ERR! path D:\ShopApp\node_modules\fsevents\node_modules\abbrevnpm ERR! code ENOENTnpm ERR! errno -4058npm ERR! syscall accessnpm 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! enoentnpm 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 安装结果如下:

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

注:

关注「编程微刊」公众号 ,在微信后台回复「领取资源」,获取IT资源300G干货大全。公众号回复“1”,拉你进程序员技术讨论群。

           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

猜你喜欢

转载自blog.csdn.net/qq_43685118/article/details/86374630
今日推荐