重启项目 出错。

重启项目 出错。

These dependencies were not found:


* !!vue-style-loader!css-loader?{"sourceMap":true}!../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-7ba5bd90","scoped":false,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./App.vue in ./src/App.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-613e5ae0","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/components/header/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-23eb5d54","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./home.vue in ./src/page/home.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-60799008","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./detail.vue in ./src/page/detail.vue


To install them, you can run: npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-7ba5bd90","scoped":false,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./App.vue !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-613e5ae0","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./index.vue !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-23eb5d54","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./home.vue !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-60799008","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./detail.vue

http://img1.sycdn.imooc.com//climg/5db569360983ef3d05940370.jpg

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

2回答
卡布琦诺 2019-10-28 14:01:22

首先输入npm install等待执行完毕(可能会报错,不用管),然后输入npm install px2rem-loader等待执行完毕,如果报错,请输入npm audit fix等待执行完毕,再输入npm audit fix --force等待执行完毕,再执行npm run dev

希望可以帮到你!

  • 提问者 慕侠0301475 #1
    Administrator@PC-201908012213 MINGW64 /f/vue/my-app1 $ npm install npm WARN deprecated extract-text-webpack-plugin@3.0.2: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else. npm ERR! Unexpected end of JSON input while parsing near '...harcodes":"0.0.10","r' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-10-28T07_40_54_974Z-debug.log Administrator@PC-201908012213 MINGW64 /f/vue/my-app1 $ npm install px2rem-loader npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x. 按照步骤进行 ,不知道哪里出错了
    2019-10-28 15:46:10
  • 卡布琦诺 回复 提问者 慕侠0301475 #2
    同学是重新启动自己的项目还是运行课程源码呀
    2019-10-28 17:14:53
卡布琦诺 2019-10-27 18:23:48

这是缺少插件,在命令行输入npm install px2rem-loader安装一下px2rem-loader插件,再重新启动项目即可

希望可以帮到你!

  • 提问者 慕侠0301475 #1
    ok我试试 ,你们的课程 17年的 可以更新了吧
    2019-10-27 18:36:16
  • 卡布琦诺 回复 提问者 慕侠0301475 #2
    同学您好,vue目前版本仍然是vue2.x,会在vue3.0出来后,统一为大家更新哦~
    2019-10-27 18:47:08
  • 提问者 慕侠0301475 回复 卡布琦诺 #3
    老师 我安装pe2rem 提示: $ npm install px2rem-loader npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x. npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else. npm WARN deprecated bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!
    2019-10-27 21:44:41
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师