Add npm source
1. Install nrm Source Manager
npm install -g nrm --registry=http://....
2. Add the source nrm
nrm add sourceName http://....
3. handover source nrm
nrm use sourceName
Switching source success, windows system to C: \ Users \ view .npmrc and .nrmrc file userName \, review the current source
Published npm package
Note: do not need to configure a private source when publishing official npm package, make sure that the current source is the official source npm
1. Add user
npm adduser
2. Log
npm login
3. Publish
It should be noted, must be compiled before contracting project
npm publish packageName
Or into the project root directory
npm publish
4. unpublish
npm unpublish
5. Published bag Add Administrator
npm owner add userName
6. Check the package administrator
npm owner ls
7. Delete the package administrator
npm owner rm userName
Package Version rule
Major version. Minor version number. Patched version number