fangfangtulk
fangfangtulk
采纳率0%
2021-01-06 18:00 阅读 32

npm run dev报错This dependency was not found

部署了一套vuecli2.0 运行正常,因为要用路由懒加载,卸载了babel6所有依赖,安装了babel7所有依赖,重新运行npm run dev,结果报错:

This dependency was not found:

* E:\个人资料\项目\net_new_hosback_4.0database\web_vue2.0\node_modules\webpack-dev-server\client\index.js?http://localhost:8080 in multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

To install it, you can run: npm install --save E:\个人资料\项目\net_new_hosback_4.0database\web_vue2.0\node_modules\webpack-dev-server\client\index.js?http://localhost:8080


This relative module was not found:

* ./src/main.js in multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
求大神们帮忙找下问题

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • csdn_chengpeng 程鹏; 2021-01-07 09:11

    把nodemodels文件夹删除,重新cnpm i试一下

    点赞 1 评论 复制链接分享

相关推荐