关于npm:记一次-vue-npm-安装依赖报错解决

46次阅读

共计 895 个字符,预计需要花费 3 分钟才能阅读完成。

1、具体问题如下:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ERR! peer [email protected]”^4.0.0 || ^5.0.0″ from [email protected]
npm ERR! node_modules/html-webpack-plugin
npm ERR! peer [email protected]”^3.0.0 || ^4.0.0″ from [email protected]
npm ERR! node_modules/script-ext-html-webpack-plugin
npm ERR! dev [email protected]”2.1.5″ from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]”^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0″ from [email protected]
npm ERR! node_modules/script-ext-html-webpack-plugin
npm ERR! dev [email protected]”2.1.5″ from the root project
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!

2、问题剖析

npm 版本过高

3、问题解决

npm install [email protected] -g

正文完
 0