This repository displays my personal study notes across various tech subjects, showcasing my continuous learning and expertise in all things related to computer science.
node file_name.js
to execute the filenode -v
will show you the version of Node installed on your local machine.npm -v
to check which version of Node Package Manager is installednpm init -y
will simply generate an empty npm project and auto-populate a package.json file in the same folder without going through an interactive process. The -y stands for yes.node_modules
is where npm saves packages and any libraries that those packages depend on. The node_modules
folder shouldn’t be checked in to version control, and can, in fact, be re-created at any time by running npm install ($ npm i
) from within the project’s root.package.json
file is all of the project’s dependencies which will allow any developer anywhere to clone your project and use npm to install whatever packages it needs to run.node -v
will show you the version of Node installed on your local machine.