Hi,
In this blog article I would like to discuss the installation procedures for installing Node Package Manager shortly called as NPM in ubuntu.
This post mainly focuses on installation of Node-12.13.0 LTS and its working, the procedures followed for the installation of this version and the forth coming version of Node would remain the same.
Using the links given above in the prerequisite section download the package in one of your preferred locations and extract it.
Open up a terminal and execute the following commands one after the other...
Moving the prompt to the user's home directory
Editing the .bashrc file using gedit
In case if you do not have gedit text editor, you can use any text editor of your choice
Append the file with the following lines
With that we have concluded the installation of Node
Use the following command to verify that the installation has happened correctly....
With this we have concluded the installation of Node and NPM in Ubuntu.
Hope you had great time reading...
Ciao
In this blog article I would like to discuss the installation procedures for installing Node Package Manager shortly called as NPM in ubuntu.
Prerequisites | |||
---|---|---|---|
Name | Version | Download Page | Direct Link |
Node | 12.13.0 LTS | Node Package Manage Download Page | Click to Download Directly |
This post mainly focuses on installation of Node-12.13.0 LTS and its working, the procedures followed for the installation of this version and the forth coming version of Node would remain the same.
Using the links given above in the prerequisite section download the package in one of your preferred locations and extract it.
Open up a terminal and execute the following commands one after the other...
Moving the prompt to the user's home directory
> cd
Editing the .bashrc file using gedit
> gedit .bashrc
In case if you do not have gedit text editor, you can use any text editor of your choice
Append the file with the following lines
NODE_HOME=<INSTALLATION-PATH-OF-NODE>
PATH=$PATH:$NODE_HOME/bin
* installation path is the location where you have extracted the node tar package
PATH=$PATH:$NODE_HOME/bin
* installation path is the location where you have extracted the node tar package
With that we have concluded the installation of Node
Use the following command to verify that the installation has happened correctly....
> which node
the above command would return the path of the executable as something shown in the picture given below...
> node --version
the above command would return the version of Node installed as given in the image below....
> which npm
the above command would return the path of the executable as something shown in the picture given below...
> npm --version
the above command would return the version of NPM installed as given in the image below....With this we have concluded the installation of Node and NPM in Ubuntu.
Hope you had great time reading...
Ciao
No comments:
Post a Comment