使用vue下载依赖时出现无法下载等错误
使用vue下载依赖时如下错误:npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency treenpm ERR!npm ERR! While resolving: vue-admin-template@3.8.0npm ERR! Found: html-webpack-plugin@4.0.0-alphanpm ERR
·
使用vue下载依赖时如下错误:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue-admin-template@3.8.0
npm ERR! Found: html-webpack-plugin@4.0.0-alpha
npm ERR! node_modules/html-webpack-plugin
npm ERR! dev html-webpack-plugin@"4.0.0-alpha" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer html-webpack-plugin@"^3.0.0" from script-ext-html-webpack-plugin@2.0.1
npm ERR! node_modules/script-ext-html-webpack-plugin
npm ERR! dev script-ext-html-webpack-plugin@"2.0.1" from the root project
npm ERR!
解决方式:
- 因为npm7.x的版本比npm6.x更严格,两种解决方案:
1.降级到npm6.x
2.npm i --legacy-peer-deps
问题解决
更多推荐
已为社区贡献1条内容
所有评论(0)