Node.js for begginers – installation

To download Node.js go to https://nodejs.org/en/ and install proper version.

After package installation you must create directory on disk to store your project and init it.
Open console, browse to created folder and then type:
#npm init
Hit [Enter] if you accept default values or enter your own data.
This will create package.json file.

If you want to install additional package then you can use command
#npm install --save packagename
–save – this option will add to your project depended library
Continue reading “Node.js for begginers – installation”