Tutorial that I followed is here.
What I learned in this module
- Node.js is the JavaScript runtime environment
- NPM is the default package manager for Node.js
- Yarn in the Node.js package manager that is used in the tutorial
- package.json is the file used to describe and configure your JavaScript project.
yarn init -y
will create one for you. - Run
node .
and index.js will be executed scripts
section in the package.json can be customized to add additional commands to be executed- To install a package run
yarn add <package name>
. This will add it to thedependencies
section in the package.json - To remove a package rin
yarn remove <package name>
- There is a
devDependencies
section in the package.json that is used for dependecies that are only needed during development