gpt4 book ai didi

npm - 未满足的对等依赖 webpack@3.6.0

转载 作者:行者123 更新时间:2023-12-04 13:53:32 25 4
gpt4 key购买 nike

我正在尝试在项目上运行 npm install 并且无法解析 webpack 包。我遵循了在谷歌和这里找到的大多数其他问题的答案。

我已经完全清理了 nodejs + npm 文件的计算机,再次按照这里的答案:
How to completely remove node.js from Windows
Unmet Peer Dependency angular 2.3.0 rxjs zone.js

我试图手动安装未满足的依赖项,全局,使用 npm install --save 将其持久化到 package.json。安装它要求的特定版本,然后安装最新版本。

我的错误是:
未满足对等依赖 webpack@3.6.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 
(node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents@1.1.2: wanted {"os":"darwin","arch":"a
ny"} (current: {"os":"win32","arch":"x64"})
npm WARN sass-loader@4.1.1 requires a peer of webpack@^2 || ^2.2.0-rc.0 ||
^2.1.0-beta || ^1.12.6 but none was install
ed.
PS C:\Users\david.maceachern\Projects\ia_beta\impacttool\src\ui> npm install
--save webpack
angular-phonecat@0.0.0
C:\Users\david.maceachern\Projects\ia_beta\impacttool\src\ui
`-- UNMET PEER DEPENDENCY webpack@3.6.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0
(node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents@1.1.2: wanted {"os":"darwin","arch":"a
ny"} (current: {"os":"win32","arch":"x64"})
npm WARN sass-loader@4.1.1 requires a peer of webpack@^2 || ^2.2.0-rc.0 ||
^2.1.0-beta || ^1.12.6 but none was install
ed.
npm ERR! code 1

最佳答案

我通过阅读对等依赖解决了这个问题 https://nodejs.org/en/blog/npm/peer-dependencies/ ,并继续清理我的 package.json 修复版本,以便 npm install 不会安装具有重大破坏性更改的版本。

我通过检查 npm 错误中出现的软件包的 github 发行说明确定了正确的版本。

关于npm - 未满足的对等依赖 webpack@3.6.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46308533/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com