- https://docs.npmjs.com/creating-and-publishing-scoped-public-packages
- https://docs.npmjs.com/creating-and-publishing-unscoped-public-packages
有用户名(@tianheg/package)
npm login
npm init --scope=@tianheg
touch README.md
# 测试
npm install /path/to/package
# 发布
cd /path/to/package
npm publish --access public
无用户名(package)
...
npm init
...
npm publish