Saturday, 9 July 2022

Publish yout first npm package

Registering and Logging into Npm package manager library

1. If you already are an existing user login to https://www.npmjs.com/. Or sign up on site and then login.


Coding

1. npm init . This will create package.json.

2. Define dependent packages in package.json

3. Add Readme.md file to give information to users about 'how to use it'

 

Push your code to npm library 

1. Open a command prompt locally and login from command prompt using command
       npm login 

2. npm publish

 

Release patches and new versions 

npm version patch
npm publish

 

 

 

No comments:

Post a Comment

Search This Blog

Creating your first "Alexa" Skill

Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...