Vue分支合并后,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

原因:可能是因为两个分支依赖的包有差别

解决方法:需要把node_moudles文件夹删除,删除后重新npm install(或 cnpm install)安装node_ moudles

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐