How to publish your pakcage
This writing explains How to publish your own pakcages 1. Make your account and login Make an account in npm website. ( https://www.npmjs.com/ ) Login to your account with: npm login $ npm login It will redirect to the browser and you can login there. 2. Make your own source code Make your own source code. File name should be same as in the main property of package.json so that npm know this file is the entry point of your package. package.json { "name": "npmtest" , ... "main": "index.js" , ... } index.js module.exports = () => { return 'hello package' ; }; 3. Publish your package You can publish your package with following command. $ npm publish It will show some error because the name npmtest is already being used by others. $ npm publish ... npm error code E403 npm error 403 403 Forbidden - PUT https://registry.npmjs.org/npmtest - You do not have permission to publish ...