只要在npm install后面加上--legacy-peer-deps就可以解決問題,安裝插件也一樣
npm install --legacy-peer-deps
執(zhí)行命令取消ssl驗證
npm set strict-ssl=false
再次執(zhí)行npm install ***,還不行可以嘗試設(shè)置你的npm鏡像源為http開頭的,不使用https
npm config set registry http://registry.npm.taobao.org
只要在npm install后面加上--legacy-peer-deps就可以解決問題,安裝插件也一樣
npm install --legacy-peer-deps
執(zhí)行命令取消ssl驗證
npm set strict-ssl=false
再次執(zhí)行npm install ***,還不行可以嘗試設(shè)置你的npm鏡像源為http開頭的,不使用https
npm config set registry http://registry.npm.taobao.org