Hi issue正在为Vue设置SASS.js

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: webpack@3.12.0
npm ERR! node_modules/webpack
npm ERR!   peer webpack@"2 || 3 || 4" from babel-loader@7.1.5
npm ERR!   node_modules/babel-loader
npm ERR!     dev babel-loader@"^7.1.1" from the root project
npm ERR!   peer webpack@"^3.1.0" from extract-text-webpack-plugin@3.0.2
npm ERR!   node_modules/extract-text-webpack-plugin
npm ERR!     dev extract-text-webpack-plugin@"^3.0.0" from the root project
npm ERR!   8 more (file-loader, friendly-errors-webpack-plugin, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev sass-loader@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: webpack@5.18.0
npm ERR! node_modules/webpack
npm ERR!   peer webpack@"^4.36.0 || ^5.0.0" from sass-loader@10.1.1
npm ERR!   node_modules/sass-loader
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See C:\Users\marko\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\marko\AppData\Local\npm-cache\_logs\2021-01-28T16_11_07_342Z-debug.log

推荐答案

我今天也有同样的问题.try 安装sass loader v10.0.5改为:

npm install -D sass-loader@10.0.5 node-sass

Vue.js相关问答推荐

使用nuxt I18N验证规则消息翻译

Vue 2 如何在全局函数中返回观察者

Vue 3 范围滑块中的多个值

webpack vue-loader 配置

用 axios 搜索:新字符时取消之前的请求

Vue cli 3项目,图像路径中的动态src不起作用

带有 vue.js 的 img 网址

Vuetify - 如何保持第一个扩展面板默认打开,如果我打开另一个面板,其他面板应该关闭?

v-on:submit.prevent 不停止表单提交

vuejs中通过变量动态调用方法

使用 Vee-Validate 在提交时验证子输入组件

如何告诉 Vue-cli 我的应用程序的入口点在哪里?

所有 vue props和数据都给出错误 Property属性在 type 上不存在,带有 typescript

使用 refs 聚焦元素目标

如何从方法内部访问数据

Vue Cli 3:定义的输出路径

在 Vue 单元测试中单击按钮时触发表单提交

使用 CloudFront 部署在 S3 上的 VueJS 应用程序的指定的密钥不存在

如何在 Vue.js 2 应用程序中模拟 onbeforeunload?

如何在 vue3 中的setup方法中发出事件?