最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Conflicting peer dependency: webpack@4.46.0 npm ERR! node_moduleswebpack - Stack Overflow

programmeradmin0浏览0评论

I cloned one repository from github then installed npm packages using npm install, but I get this error

  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/position-api": "^1.0.0-rc.6",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.2.2",
    "less": "^4.1.1",
    "less-loader": "^8.0.0",
    "node-sass": "^5.0.0",
    "sass": "^1.32.6",
    "sass-loader": "^7.3.1",
    "url-loader": "^4.1.1",
    "vue-template-piler": "^2.6.11"
  },

How can I get rid of this problem?

I cloned one repository from github then installed npm packages using npm install, but I get this error

  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/position-api": "^1.0.0-rc.6",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.2.2",
    "less": "^4.1.1",
    "less-loader": "^8.0.0",
    "node-sass": "^5.0.0",
    "sass": "^1.32.6",
    "sass-loader": "^7.3.1",
    "url-loader": "^4.1.1",
    "vue-template-piler": "^2.6.11"
  },

How can I get rid of this problem?

Share Improve this question asked May 12, 2021 at 13:19 SynchroSynchro 1,2694 gold badges25 silver badges61 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

I have found this issue from my project which I built last two weeks. Now, this month (May 2021) sass-lang says LibSass and Node Sass are deprecated

try this mands-

yarn remove node-sass
yarn add sass

or npm mands

发布评论

评论列表(0)

  1. 暂无评论