These dependencies were not found:

These dependencies were not found:

 ERROR  Failed to compile with 12 errors                                                                       14:12:26

These dependencies were not found:


* assets/scss/index.scss in ./src/main.js

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-28048cf0","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/base/navbar/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-9863f5ce","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/base/slider/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-72b83f71","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/components/tabbar/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-72707db2","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/cart/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-6ffc6f85","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/category/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-5b685826","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/home/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-5d990869","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./header.vue in ./src/pages/home/header.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-29a954bd","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./slider.vue in ./src/pages/home/slider.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-3a2aa372","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/personal/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-714056de","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/product/index.vue

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-7ce016af","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue in ./src/pages/search/index.vue

这是啥问题?

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

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

2回答
好帮手慕码 2019-11-01 18:57:37

同学你好!
查看报错信息,是找不到这个模块“tough-cookie”同学可以手动删除依赖包node_modules,再次npm/cnpm install下载一次。

如果还是不可以的话,可能是node.js版本太低导致的,同学可以删除node.js再次下载一下
,如下版本:

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

然后删除项目根文件夹下的node_modules和“package-lock.json”,重新执行npm install。

同学可以试一下。

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


  • 提问者 墮落雙魚 #1
    可以了,谢谢
    2019-11-04 10:28:38
好帮手慕码 2019-11-01 15:24:53

同学你好!

可能是css-loader的问题,建议重新安装一下:

npm(cnpm)install stylus-loader css-loader style-loader --save-dev

或者有可能是sass-loader版本太高导致,可以执行

npm(cnpm) install --save sass-loader@6.0.7

命令安装低版本的sass-loader, 然后重启项目试试~

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

  • 提问者 墮落雙魚 #1
    1.按照这个npm(cnpm)install stylus-loader css-loader style-loader --save-dev 还是报一样的错误; 2.按照npm(cnpm) install --save sass-loader@6.0.7安装,没安装成功报错了 Error: Cannot find module 'tough-cookie' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (E:\myvue\mall\node_modules\_request@2.88.0@request\lib\cookies.js:3:13) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) [npminstall:runscript:error] sass-loader@6.0.7 › node-sass@^4.13.0 scripts.install run "node scripts/install.js" error: RunScriptError: Run "C:\windows\system32\cmd.exe /d /s /c node scripts/install.js" error, exit code 1 × Install fail! RunScriptError: post install error, please remove node_modules before retry! Run "C:\windows\system32\cmd.exe /d /s /c node scripts/install.js" error, exit code 1s/install.js" error, exit code 1
    2019-11-01 17:11:23
问题已解决,确定采纳
还有疑问,暂不采纳

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

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

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

在线咨询

领取优惠

免费试听

领取大纲

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