npm set registry http://registry.example.com/
/> npm set always-auth true
/> npm login
Username: user
Password: 123456789
Email: [email protected]
- first make
package.json
npm publish
user@server:~# mkdir yun-test
user@server:~/yun-test# npm init
user@server:~/yun-test# npm publish