栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > Web开发 > JavaScript

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

JavaScript 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

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


npm ERR! path D:ShopAppnode_modulesfseventsnode_modulesabbrev
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:ShopAppnode_modulesfseventsnode_modulesabbrev'
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 Filesnodejsnode_cache_logs2018-08-01T02_35_44_300Z-debug.log

####解决办法:

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

然后再重新npm install 安装

重新npm install 安装结果如下:

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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/244500.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号