npm和yarn的一些命令

文章目录


前言


提示:生命并不短暂,短暂的是人。 --阿多尼斯

java 复制代码
 yarn config set registry https://registry.npmjs.org --global
 npm install -g cnpm --registry=https://registry.npm.taobao.org
# 切换淘宝源:  
yarn config set registry https://registry.npm.taobao.org/
# 删除代理配置:
npm config set http-proxy null
npm config rm https-proxy
yarn config delete proxy
npm config rm proxy
# 删除node-module包:
rimraf node_modules  
#清除缓存:
npm cache clean --force 
npm cache verify 	
java 复制代码
# 查看源
npm config get registry
# 下载淘宝镜像源
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 切换淘宝镜像源
npm config set registry https://registry.npm.taobao.org
# 切换成官方
npm config set registry https://registry.npmjs.org/
相关推荐
mCell4 小时前
使用 useSearchParams 同步 URL 和查询参数
前端·javascript·react.js
mCell5 小时前
前端路由详解:Hash vs History
前端·javascript·vue-router
海上彼尚5 小时前
无需绑卡的海外地图
前端·javascript·vue.js·node.js
1024肥宅6 小时前
手写 call、apply、bind 的实现
前端·javascript·ecmascript 6
科杰智能制造7 小时前
纯前端html、js实现人脸检测和表情检测,可直接在浏览器使用
前端·javascript·html
每天吃饭的羊7 小时前
组件库的有些点击事件是name-click这是如何分装de
前端·javascript·vue.js
x***01067 小时前
SpringSecurity+jwt实现权限认证功能
android·前端·后端
1024肥宅7 小时前
防抖(Debounce)
前端·javascript·ecmascript 6
1024肥宅7 小时前
节流(Throttle)
前端·javascript·ecmascript 6
by__csdn7 小时前
Vue2纯前端图形验证码实现详解+源码
前端·javascript·typescript·vue·状态模式·css3·canva可画