Installing Node.js
Learn to install Node.js for creating JavaScript applications.
We'll cover the following
Installing Node.js
Node.js is a JavaScript runtime environment for building and executing JavaScript applications. In case you do not have Node.js already installed on your system, you can install it by visiting the official website. You can choose to download either the LTS (or stable) version or the current (non-stable) version. After downloading, follow the instructions to install Node.js on the system.
To check if Node.js is installed on your system, open the command prompt and type
node -v
ornode - -version
. This should return the version of Node.js installed on your system.
When we install Node.js, it gives us a tool called npm. This is the default package manager for Node.js. It consists of a command line interface and an online repository of JavaScript packages. The repository has over a million packages that can be installed as well as published using the CLI.
VS Code gives us access to a command line that points to the folder that is currently open. To access the terminal in VS Code, click the "View" option and choose "Terminal" from the options.
Get hands-on with 1400+ tech skills courses.