npm run dev之后出现这些

npm run dev之后出现这些

These dependencies were not found:

* !!vue-style-loader!css-loader?{"sourceMap":true}!../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-7ba5bd90","scoped":false,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../node_modules/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/lib/style-compiler/index?{"vue":true,"id":"data-v-469af010","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./HelloWorld.vue in ./src/components/HelloWorld.vue
* !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-57509004","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/index.vue

To install them, you can run: npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-7ba5bd90","scoped":false,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-469af010","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./HelloWorld.vue !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-57509004","scoped":true,"hasInlineConfig":false}!px2remLoader?{"remUnit":50}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue


正在回答

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

3回答

建议同学删除掉node_modules文件夹,然后重新执行

npm install安装依赖,执行完npm install,再执行npm install px2rem-loader安装px2rem-loader插件,等待安装完成,再执行npm run dev即可成功

希望可以帮到你!

  • TOmAs4 提问者 #1
    不行哦,还是这样子
    2019-08-03 19:25:49
  • TOmAs4 提问者 #2
    utils.js里面 var px2remLoader = { loader : 'px2remLoader', options : { remUnit : 50 } }; // generate loader string to be used with extract text plugin function generateLoaders (loader, loaderOptions) { const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader, px2remLoader] 用这个就会出错
    2019-08-03 19:30:56
  • TOmAs4 提问者 #3
    可以了,我找到问题所在了
    2019-08-03 19:32:39
好帮手慕言 2019-08-03 16:21:51

同学你好,可以运行一下项目,可以运行就是成功了。

如果帮助到了你,欢迎采纳,祝学习愉快~

  • 提问者 TOmAs4 #1
    运行还是一开始那样哦!~
    2019-08-03 18:39:30
好帮手慕言 2019-08-03 15:05:37

同学你好,看报错是因为有依赖没有安装。

建议:

在命令行输入npm install -D px2rem-loader

如果帮助到了你,欢迎采纳~祝学习愉快~

  • 提问者 TOmAs4 #1
    npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js 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 ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + px2rem-loader@0.1.9 updated 1 package and audited 11812 packages in 16.155s found 10 vulnerabilities (6 moderate, 4 high) run `npm audit fix` to fix them, or `npm audit` for details 这样是安装成功吗?
    2019-08-03 15:17:49
问题已解决,确定采纳
还有疑问,暂不采纳

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

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

0 星
热门框架Vue开发WebApp 18版
  • 参与学习           人
  • 提交作业       209    份
  • 解答问题       3299    个

本路径是通过ES6基础知识、运用Zepto、Swiper、fullPag等移动端常用工具包、以及当下流行框架Vue,结合多个实战案例,还原真实开发场景,最终实现手机端购物商城网页开发。

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

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