Publishing a package

suggest change

First, make sure that you have configured your package (as said in http://stackoverflow.com/documentation/node.js/482/npm/2257/setting-up-a-package-configuration​). Then, you have to be logged in to npmjs.

If you already have a npm user

npm login

If you don’t have a user

npm adduser

To check that your user is registered in the current client

npm config ls

After that, when your package is ready to be published use

npm publish

And you are done.

If you need to publish a new version, ensure that you update your package version, as stated in http://stackoverflow.com/documentation/node.js/482/npm/2178/basic-semantic-versionini. Otherwise, npm will not let you publish the package.

{
    name: "package-name",
    version: "1.0.4"
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents