Open Kelichao opened 6 years ago
npm config set registry http://registry.npmjs.org
npm login
Logged in as kelichao on http://registry.npmjs.org/.
确认包名没有重复 npm publish
npm publish
如果重名
发包成功
1.首先建立自己的npm账号
2.npm init建立package.json
3. 从淘宝镜像切回npm地址(没有验证)
npm config set registry http://registry.npmjs.org
4.登录npm
npm login
Logged in as kelichao on http://registry.npmjs.org/.
5.发布
确认包名没有重复
npm publish
如果重名
发包成功