切换默认源
npm config set registry https://registry.npmjs.org
切换淘宝源
#临时使用
npm --registry https://registry.npm.taobao.org
#全局使用
npm config set registry https://registry.npm.taobao.org
将账号会被添加到npm本地的配置中
npm adduser
npm会把认证信息存储在~/.npmrc中,并且可以通过以下命令查看npm当前使用的用户:
npm whoami
npm login
npm init
npm publish
npm unpublish --force //强制删除
npm unpublish ahzotest@1.0.0 //指定版本号
npm deprecate //某些情况
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有