npm застрял в петле зависимостей - PullRequest
0 голосов
/ 29 апреля 2020

При попытке установить npm я сталкиваюсь с ошибками зависимостей. Эти ошибки go от требования одного набора значений к другому, а затем обратно обратно к прежнему. Даже установка всего набора обеих зависимостей дает тот же результат

npm install

npm WARN css-loader@1.0.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN html-webpack-plugin@4.0.0-alpha.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mini-css-extract-plugin@0.4.3 requires a peer of webpack@^4.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN optimize-css-assets-webpack-plugin@5.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN terser-webpack-plugin@1.1.0 requires a peer of webpack@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN url-loader@1.1.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.4.0 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.1.14 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.

, затем пытается использовать npm install --save-dev "webpack@^4.0.0" "webpack@^4.3.0" "webpack@^4.4.0"

npm WARN @jpmorganchase/perspective@0.2.12 requires a peer of webpack@>=3.5 <4 but none is installed. You must install peer dependencies yourself.
npm WARN uglifyjs-webpack-plugin@0.4.6 requires a peer of webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but none is installed. You must install peer 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 peer dependencies yourself.

, тогда я пытаюсь npm install --save-dev "webpack@>=3.5 <4" "webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0" "webpack@^3.1.0 webpack@^4.0.0" "webpack@^4.3.0" "webpack@^4.4.0" без пользы. снова появляется первый набор ошибок

Я даже пытался удалить условия в установке, такие как (^ 1.9 || ^ 2 || ^ 2.1.0), и заменил их точной версией, но это не может выйти из л oop.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...