nvm,nrm和yarn

时间:2020-01-24 16:39:29   收藏:0   阅读:94

nvm

Node Version Management

nrm(node registry manager)

使用淘宝的 cnpm 镜像源下载:

npm install --save express --registry=https://registry.npm.taobao.org

第一:

npm install -g nrm

Yarn

Yarn 是一个 Facebook 开源的一个类似于 npm 的一个包管理工具,也就是 npm 能做的,
yarn 也能做。

安装:

npm install -g yarn

使用:

# npm init
yarn init

# npm install --save 包名
yarn add 包名

# 离线安装
yarn add 包名@版本号 --offline

# npm install
yarn install

# npm uninstall 包名
yarn remove 包名

# npm install -g 包名
yarn global add 包名

# npm uninstall -g 包名
yarn global remove 包名

原文:https://www.cnblogs.com/ygjzs/p/12232312.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!