【前端】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> 
相关推荐
小李小李不讲道理1 天前
「Ant Design 组件库探索」五:Tabs组件
前端·react.js·ant design
毕设十刻1 天前
基于Vue的学分预警系统98k51(程序 + 源码 + 数据库 + 调试部署 + 开发环境配置),配套论文文档字数达万字以上,文末可获取,系统界面展示置于文末
前端·数据库·vue.js
mapbar_front1 天前
在职场生存中如何做个不好惹的人
前端
牧杉-惊蛰1 天前
纯flex布局来写瀑布流
前端·javascript·css
一袋米扛几楼981 天前
【软件安全】什么是XSS(Cross-Site Scripting,跨站脚本)?
前端·安全·xss
向上的车轮1 天前
Actix Web适合什么类型的Web应用?可以部署 Java 或 .NET 的应用程序?
java·前端·rust·.net
XiaoYu20021 天前
第1章 核心竞争力和职业规划
前端·面试·程序员
excel1 天前
🧩 深入浅出讲解:analyzeScriptBindings —— Vue 如何分析 <script> 里的变量绑定
前端
蓝瑟1 天前
AI时代程序员如何高效提问与开发工作?
前端·ai编程
林晓lx1 天前
使用Git钩子+ husky + lint语法检查提高前端项目代码质量
前端·git·gitlab·源代码管理