发布自己的 NPM 包
注册 NPM 账号
在 https://www.npmjs.com/ 注册账户
添加本地用户
1 2 3 4
   | npm adduser username: password: email:
   | 
检查
配置 package.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
   | {   "name": "package_name",   "version": "1.8.3",   "description": "Package Descrption.",   "keywords": [     "hexo",     "theme",     "material design"   ],   "author": {     "name": "Vitan",     "email": "admin@vitan.me"   },   "license": "MIT",   "repository": {     "url": "git+https://github.com/ivitan/Project.git",     "type": "git"   } }
  | 
发布