vue-cli · Failed to download repo vuejs-templates/webpack: self signed certificate in certificate ch
2023-09-11 14:19:17 时间
VUE CLI.下载VUEJS模板/WebPACK失败:证书链中的自签名证书
$ vue init webpack project
报错
vue-cli · Failed to download repo vuejs-templates/webpack: self signed certificate in certificate chain
解决办法:
C:\Users<UserName>\AppData\Roaming\npm\node_modules\vue-cli\node_modules\download
如果不是默认的文件夹, 是自定义的文件夹路径的话就是在自定义文件夹的目录下:
自定义文件夹\node_global\node_modules\vue-cli\node_modules\download,
我的文件夹是默认路径:
打开index.js
将这行注释
rejectUnauthorized: process.env.npm_config_strict_ssl !== 'false'
增加一行
rejectUnauthorized : false
保存以后,重新运行vue init webpack project-name
相关文章
- Vue -> 解决 vue-ueditor-wrap 不能显示的问题
- [Nuxt] Add Arrays of Data to the Vuex Store and Display Them in Vue.js Templates
- vue.js3.2.6:路由处理404报错(vue-router@4.0.11)
- EasyDSS高性能RTMP、HLS(m3u8)、HTTP-FLV、RTSP流媒体服务器前端源码重构(一)-从零开始搭建 webpack + vue + AdminLTE 多页面脚手架
- [Nuxt] Setup a "Hello World" Server-Rendered Vue.js Application with the Vue-CLI and Nuxt
- [Vue] Use Vue.js Component Computed Properties
- vue.js 3.2.20:拖动创建div及移动、缩放、删除等操作
- vue商城项目开发:axios发送请求及列表数据展示
- 一个典型的Vue应用的App.vue
- vue 项目 打印, 要求 只打印div里面的内容
- vue-router路由的安装、配置、具体用法和Vue-router学习笔记
- 在vue里运行报错:Failed to resolve loader: sass-loader You may need to install it.提示需要安装sass模块
- 【华为云技术分享】三大前端技术(React,Vue,Angular)探密(下)
- npm 报错 request to https://registry.cnpmjs.org/vue failed, reason: Hostname/IP does not match certificate‘
- Vue项目打包部署Nginx配置及前端缓存问题解决
- 在vue中的form表单中下拉框中的数据来自数据库查询到的数据
- vue的iview列表table render函数设置DOM属性值的方法
- Vue中vue-i18n结合element-ui实现国际化
- Vue、Vuejs从入门到精通 | vue-router详解
- Vue(八)vue 脚手架、脚手架创建项目示例
- Vue(一)vue 概述与用法、MVVM、绑定语法、vue 指令
- Vue: vue-router路由
- Win10解决Android Studio:Gradle sync failed: Failed to open zip file.