npm使用说明

2019-03-23 21:05  517人阅读  评论 (0)
Tags: nodenpm

镜像地址

npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist

yarn config set registry https://registry.npm.taobao.org
yarn config set disturl https://npm.taobao.org/dist

发布模块

npm config set registry https://registry.npmjs.org

npm adduser

npm publish

npm安装github模块

npm install git+ssh://user1/user1/hello.git