Environment Setup for Windows
Node.js
is a free open source software .You can download it from
https://nodejs.org/en/download/
You
will get below screen
1)Download the Windows installer from the Nodes.js® web site.
http://nodejs.org/dist/v0.10.26/node-v0.10.26-x86.msi
http://nodejs.org/dist/v0.10.26/x64/node-v0.10.26-x64.msi
2)Double Click the msi for installation ,you will get below screen
4)Click Next ,you will get below screen
5)Accept the License Agreement and click next.
Test your application
Your Setup is ready for run.Now you need to test your application.
Below is the step , you can follow
1)Create a text file and rename is "main" , now change the extension of the file to 'js'.
2)Open main.js file and write the following line
console.log('My first Nodejs Application');
Save the text and close the file.
3)Now open "Command Prompt" of your computer.
4)use "cd" command to move to the location , where you have created the "main.js" file.
5)We have created it in the Desktop.So our path is
C:\Desktop>
6)Type the following command
C:\Desktop>node main.js
You will the output
"My first Nodejs Application".
How to Uninstall Node.js
1)Open the Windows Control Panel.
2)Choose the “Programs and Features” option.
3)Click the “Uninstall a program” option.
2)Choose the “Programs and Features” option.
3)Click the “Uninstall a program” option.
4)Select Node.js, and click the Uninstall link.
Node.js installer are available almost all modern operating system like Android,Linux,Ubuntu,Fedora, FreeBSD , OpenBSD,openSUSE,macOS , SmartOS.Below are some other popular installer
- Linux :node-v6.3.1-linux-x86.tar.gz
- Mac :node-v6.3.1-darwin-x86.tar.gz
- SunOS :node-v6.3.1-sunos-x86.tar.gz
There are separate installation process for separate operating system.Some popular installation procedure are
- Android : pkg install nodejs
pkg install nodejs-current - Fedora : sudo dnf install nodejs
- Enterprise Linux : sudo yum install nodejs npm --enablerepo=epel
No comments:
Post a Comment