vue启动的时候报错了requires a peer of webpack@^4.0.0 but none is installed.

本文详细描述了在使用css-loader时遇到的与webpack版本不匹配的问题,并提供了具体的解决方案,即通过安装指定版本的webpack来修复依赖问题。

npm install

npm WARN css-loader@1.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.

 

audited 14682 packages in 8.843s

found 3 moderate severity vulnerabilities

  run `npm audit fix` to fix them, or `npm audit` for details

解决办法:npm install webpack@^4.0.0 -g

 

 

peerDependencies WARNING sass-loader@^10.0.1 requires a peer of webpack@^4.36.0 || ^5.0.0 but none was installed, packageDir: D:\work\internet_hospital_master_miniapp\node_modules\.store\sass-loader@10.5.2\node_modules\sass-loade r peerDependencies WARNING vue-i18n@^9.4.0 requires a peer of vue@^3.0.0 but none was installed, packageDir: D:\work\internet_hospital_master_miniapp\node_modules\.store\vue-i18n@9.14.5\node_modules\vue-i18n deprecate node-sass@^6.0.0 Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead. deprecate node-sass@6.0.1 › npmlog@^4.0.0 This package is no longer supported. deprecate node-sass@^6.0.0 Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead. deprecate node-sass@6.0.1 › npmlog@^4.0.0 This package is no longer supported.dedeprecate node-sass@^6.0.0 Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead. deprecate node-sass@6.0.1 › npmlog@^4.0.0 This package is no longer supported.deprecate node-sass@^6.0.0 Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead. deprecate node-sass@6.0.1 › npmlog@^4.0.0 This package is no longer supported.deprecate node-sass@6.0.1 › glob@^7.0.3 Glob versions prior to v9 are no longer supported deprecate node-sass@6.0.1 › glob@7.2.3 › inflight@^1.0.4 This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is muc h more comprehensive and powerful. deprecate node-sass@6.0.1 › request@^2.88.0 request has been deprecated, see https://github.com/request/request/issues/3142 deprecate node-sass@6.0.1 › npmlog@4.1.2 › are-we-there-yet@~1.1.2 This package is no longer supported. deprecate node-sass@6.0.1 › gaze@1.1.3 › globule@1.3.4 › glob@~7.1.1 Glob versions prior to v9 are no longer supporteddeprecate node-sass@6.0.1 › npmlog@4.1.2 › gauge@~2.7.3 This package is no longer supported.deprecate node-sass@6.0.1 › request@2.88.2 › har-validator@~5.1.3 this library is no longer supporteddeprecate node-sass@6.0.1 › request@2.88.2 › uuid@^3.3.2 Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-rand om for details. deprecate node-sass@6.0.1 › node-gyp@7.1.2 › rimraf@^3.0.2 Rimraf versions prior to v4 are no longer supported
最新发布
12-02
PS D:\Desktop\EAP本地\EAPAdmin\ADM_Client> npm install node-sass@6 sass-loader@10 --save-dev npm WARN deprecated node-sass@6.0.1: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead. npm WARN deprecated npmlog@4.1.2: This package is no longer supported. npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated are-we-there-yet@1.1.7: This package is no longer supported. npm WARN deprecated gauge@2.7.4: This package is no longer supported. > node-sass@6.0.1 install D:\Desktop\EAP本地\EAPAdmin\ADM_Client\node_modules\node-sass > node scripts/install.js Cached binary found at E:\nodejs\node_cache\node-sass\6.0.1\win32-x64-72_binding.node > node-sass@6.0.1 postinstall D:\Desktop\EAP本地\EAPAdmin\ADM_Client\node_modules\node-sass > node scripts/build.js Binary found at D:\Desktop\EAP本地\EAPAdmin\ADM_Client\node_modules\node-sass\vendor\win32-x64-72\binding.node Testing binary Binary is fine npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies your self. npm WARN eslint-plugin-vue@4.7.1 requires a peer of eslint@^3.18.0 || ^4.0.0 but none is installed. You must install pee r dependencies yourself. npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install pee r dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"an y"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.3 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"}) + node-sass@6.0.1 + sass-loader@10.5.2 added 7 packages from 8 contributors, removed 5 packages and updated 3 packages in 29.343s 160 packages are looking for funding run `npm fund` for details
07-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值