专业的编程技术博客社区

网站首页 > 博客文章 正文

npm 常用命令(npm命令是什么语言)

baijin 2024-08-21 11:17:26 博客文章 4 ℃ 0 评论

设置淘宝镜像:npm install -g cnpm --registry=https://registry.npm.taobao.org

临时使用淘宝镜像:npm install xxx --save-dev --registry https://registry.npm.taobao.org

获取当前镜像:npm get registry

清除npm缓存:npm cache clean --force

升级npm:npm install npm -g

安装包:npm install xxx

更新包:npm update xxx

卸载包:npm uninstall xxx

查看包:npm list --depth 0

添加用户:npm adduser

当前用户:npm whoami

发布npm包:npm publish

摸似安装包:npm link xxx

注册bin:npm rebuild

移除摸似安装包:npm unlink --no-save xxx

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表