top of page

How to add Nodejs environment in windows.

In this post, we will discuss about “How to setup Node JS Base Environment” in Windows OS


1. Access Node JS Official Website “https://nodejs.org/en/”

Here we can find “INSTALL” button. If we want to download latest stable version, we can click on this button. If we want to select Node JS Platform based on our Hardware and Software requirements like Windows 32bit or 64bit OS, please click on “Downloads” button and select your required Node JS version to download.



2. Please click on “INSTALL” button to download latest Node JS Platform Version 0.12.0, this is the latest version as of writing this post.


3. Please double click on “node-v0.12.0-x64.msi” file to start Installation process.


Click on “Next” Button. Accept License Agreement and Click on “Next” Button.



4. Choose your required location to install.



5. Choose Default values and click on “Install” Button.



6. Open Node JS Platform Home in your Explorer.

Here we can observe node.exe and npm.cmd files and also “node_modules” folder. Now onwards, we will refer the following names for easier discussion purpose NODSJS_HOME= D:\NodeJS.V.0.12.0 NODEJS_MODULES= D:\NodeJS.V.0.12.0\node_modules NODEJS_NPM= D:\NodeJS.V.0.12.0\node_modules\npm NOTE:

  • If we use Windows Installer like “node-v0.12.0-x64.msi” or exe file then we doesn’t need to do anything to SYSTEM variables. This installer will take care of everything.

  • If we use other formats or if these are missing in your system environment variables, please add the following variables to SYSTEM properties;

PATH=C:\Users\[username]\AppData\Roaming\npm;D:\NodeJS.V.0.12.0\;%PATH%

9. Open Command prompt at NODSJS_HOME or anywhere like D:\



10. Run “node.exe” command


Now we are able to see “>” prompt, that means our Node JS Base Environment Setup is done.


11. Check Node JS Version: Use the following command to know your Node JS Version from Command prompt.

node –v


12. Exit from Node CLI: We can use “process.exit()” command to exit from Node CLI.


We can also use Ctrl + D OR use Ctrl + C Twice to exit from Node CLI.

Tags:

3 views0 comments

Kommentare


©2022 www.theblackthreat.in All right reserved.
bottom of page