So we installed NodeJS on our machine.
Because there is already a lot of code out there in the internet, we can use other peoples’ code so we do not have to reinvent the wheel to solve problems, that are already solved.
In order to easily get solutions from other people, we can use a tool called npm.
This will be a short intro to npm with the most used commands. If you want to learn some advanced concepts, read the npm documentation.
If you already installed NodeJS, you already have npm on your machine.
To check, if npm is installed:
Most of the time, you want to use packages project-wise.
npm init. This will create a
package.jsonfile, where all your settings will be saved.
versionetc. You can read about the correct answers here
npm install chalk. If you want to see all the possibilities how to
npm installa package, read the npm install docs.
If you want to learn additional commands, e.g. uninstall a package, read the documentation
Hi! I'm Michael 👋 I'm a problem solver and mentor. My goal is to build great products and help you to become a better developer.