Node.js——npm

npm un 包名 :删除指定包,不删除安装的依赖

npm un --save 包名: 删除包,并且删除其依赖项

npm install -g cnpm --registry=https://registry.npm.taobao.org 安装淘宝源,之后就可以使用 cnpm install [name]

或者

npm i [name] --registry=https://registry.npm.taobao.org

或者

npm config set registry https://registry.npm.taobao.org 之后依旧使用 npm 安装包,但是走的是淘宝源

猜你喜欢

转载自www.cnblogs.com/wuqiuxue/p/9180888.html