npm install 卡顿 以及 jenkins自动发布 使用私有云打包发布失败 解决方案

npm install 卡顿 以及 jenkins自动发布 使用私有云打包发布失败

解决方案

复制代码
使用国内镜像
npm config set registry=https://registry.npmmirror.com 
 //执行以下命令查看是否配置成功
npm config get registry
npm install

使用私有云
npm config set registry http://mavenrepository.xxx.com.cn/repository/Npm-Virtual/
 //执行以下命令查看是否配置成功
npm config get registry
npm install

私有云会同步项目package.json 但时间通常较慢24-48h 紧急上线需求的功能 尽量避免github插件的使用。

使用新插件需要切换私有云 npm install 测试 如果失败需要更改插件

相关推荐
站在风口的猪110833 分钟前
《前端面试题:CSS预处理器(Sass、Less等)》
前端·css·html·less·css3·sass·html5
程序员的世界你不懂1 小时前
(9)-Fiddler抓包-Fiddler如何设置捕获Https会话
前端·https·fiddler
MoFe11 小时前
【.net core】天地图坐标转换为高德地图坐标(WGS84 坐标转 GCJ02 坐标)
java·前端·.netcore
去旅行、在路上2 小时前
chrome使用手机调试触屏web
前端·chrome
Aphasia3112 小时前
模式验证库——zod
前端·react.js
lexiangqicheng3 小时前
es6+和css3新增的特性有哪些
前端·es6·css3
拉不动的猪3 小时前
都25年啦,还有谁分不清双向绑定原理,响应式原理、v-model实现原理
前端·javascript·vue.js
烛阴4 小时前
Python枚举类Enum超详细入门与进阶全攻略
前端·python
孟孟~4 小时前
npm run dev 报错:Error: error:0308010C:digital envelope routines::unsupported
前端·npm·node.js
孟孟~4 小时前
npm install 报错:npm error: ...node_modules\deasync npm error command failed
前端·npm·node.js