【前端】yarn install error

bash 复制代码
PS D:\idea_workspace\bi4-spa> yarn install
yarn install v1.22.17
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npm.taobao.org/handsontable: certificate has expired".
info If you think this is a bug, please open a bug report with the information provided in "D:\\idea_workspace\\bi4-spa\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

问题原因: 原来证书到期了

http://registry.npm.taobao.org/ 把这个放到浏览器搜索的时候自动换成https://registry.npmmirror.com/

解决方法:

npm cache clean --force
npm config set registry https://registry.npmmirror.com

最后查看npm当前镜像源 npm config get registry

使用如下

bash 复制代码
PS D:\idea_workspace\bi4-spa> npm config get registry
https://registry.npmjs.org/
PS D:\idea_workspace\bi4-spa> npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.
PS D:\idea_workspace\bi4-spa> npm config set registry https://registry.npmmirror.com
PS D:\idea_workspace\bi4-spa> npm config get registry
https://registry.npmmirror.com/
PS D:\idea_workspace\bi4-spa> yarn install
yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "vue-meta-info > rollup-plugin-json@2.3.1" has unmet peer dependency "rollup@< 0.59.0".
warning " > @babel/eslint-parser@7.14.7" has unmet peer dependency "@babel/core@>=7.11.0".
warning " > @babel/eslint-parser@7.14.7" has incorrect peer dependency "eslint@>=7.5.0".
warning "@vue/eslint-config-airbnb > eslint-config-airbnb-base@14.2.1" has incorrect peer dependency "eslint@^5.16.0 || ^6.8.0 || ^7.2.0".
warning "@vue/eslint-config-airbnb > eslint-import-resolver-webpack@0.13.2" has unmet peer dependency "webpack@>=1.11.0".
warning " > commitlint-config-cz@0.13.2" has unmet peer dependency "@commitlint/cli@^7.0.0 || ^8.0.0 || ^9.0.0".
warning " > eslint-config-airbnb@18.2.1" has incorrect peer dependency "eslint@^5.16.0 || ^6.8.0 || ^7.2.0".
warning " > eslint-config-airbnb@18.2.1" has unmet peer dependency "eslint-plugin-jsx-a11y@^6.4.1".
warning " > eslint-config-airbnb@18.2.1" has unmet peer dependency "eslint-plugin-react@^7.21.5".
warning " > eslint-config-airbnb@18.2.1" has unmet peer dependency "eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0".       
warning " > hard-source-webpack-plugin@0.13.1" has unmet peer dependency "webpack@*".
warning " > less-loader@5.0.0" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning " > sass-loader@10.1.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
warning " > style-resources-loader@1.4.1" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0 || ^5.0.0".
warning " > terser-webpack-plugin@4.2.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > webpackbar@5.0.0-3" has unmet peer dependency "webpack@3 || 4 || 5".
[4/4] Building fresh packages...
success Saved lockfile.
$ husky install
husky - Git hooks installed
Done in 28.05s.
PS D:\idea_workspace\bi4-spa> 
相关推荐
Baklib梅梅21 小时前
员工手册:保障运营一致性与提升组织效率的核心载体
前端·ruby on rails·前端框架·ruby
IT_陈寒1 天前
Redis性能翻倍的5个冷门技巧,90%开发者都不知道第3个!
前端·人工智能·后端
jingling5551 天前
vue | 在 Vue 3 项目中集成高德地图(AMap)
前端·javascript·vue.js
油丶酸萝卜别吃1 天前
Vue3 中如何在 setup 语法糖下,通过 Layer 弹窗组件弹出自定义 Vue 组件?
前端·vue.js·arcgis
J***Q2921 天前
Vue数据可视化
前端·vue.js·信息可视化
ttod_qzstudio1 天前
深入理解 Vue 3 的 h 函数:构建动态 UI 的利器
前端·vue.js
_大龄1 天前
前端解析excel
前端·excel
一叶茶1 天前
移动端平板打开的三种模式。
前端·javascript
前端大卫1 天前
一文搞懂 Webpack 分包:async、initial 与 all 的区别【附源码】
前端
Want5951 天前
HTML音乐圣诞树
前端·html