We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nrm use npm
npm add-user
name: password email:
then you will receive a email to verify your email, Please check your junk mail list .
you must have a git repo to contain npm package source code.
├── README.md ├── index.js ├── lib │ └── index.js ├── package.json └── test
this is a simple npm package template
some configure must be set
{ "name": "your-package-name", "version": "1.0.0", "description": "", "main": "index.js", "repository": "your-https-git-repo", "keywords": [ "hello", "test" ], "files": [ "lib", "README.md" ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "your name <your email>", "license": "MIT" }
name and version is required. and author must be the same you login.
npm login
username: password:
npm publish
you must git commit local branch before run npm publish
usually success ,and you will find your package, on npmjs.com
$ npm version <patch|minor|major>, if you have already published to npm
$ npm version <patch|minor|major>
- patch for bug fix - minor for new feature - major for breaking changes
npm pack or npm link to validate the module to be publish
npm pack
npm link
$ npm publish
The text was updated successfully, but these errors were encountered:
No branches or pull requests
npm publish package
environment
change registry
npm add a user
npm add-user
name:
password
email:
GitHub account
you must have a git repo to contain npm package source code.
local files
this is a simple npm package template
package.json
some configure must be set
login && publish
npm login
username:
password:
npm publish
publish versions
$ npm version <patch|minor|major>
, if you have already published to npmnpm pack
ornpm link
to validate the module to be publish$ npm publish
The text was updated successfully, but these errors were encountered: