如何发布npm
1. 注册npm
2. 检查包名有没有重复
$ npm view <你的包名>3. package.json
$ npm init -y...
"bin": {
"sag": "index.js"
},
...4. npm login
5. npm publish
Last updated
Was this helpful?
$ npm view <你的包名>$ npm init -y...
"bin": {
"sag": "index.js"
},
...Last updated
Was this helpful?
Was this helpful?
$ npm login