How to Install NPM | Node Package Manager

preview_player
Показать описание
NPM is 'Node Package Manager'. It can manage node packages or node modules. You need to install NodeJS to use NPM. You will install NodeJS, and NPM will be installed along with it.

NodeJS can be installed separately but it's better to use NVM to install NodeJS.
NVM is Node Version Manager.

Web developers have to deal with different NodeJS versions because not all projects use latest NodeJS. Usually, developers have to switch between NodeJS versions before they work on any project. They have to use NodeJS version that project is built with. Otherwise things break. That is why Node version manager is necessary.

NPM is the world's largest software registry. Open source developers from every continent use npm to share and borrow packages. NPM consists of three components:

- NPM website to browse packages information
- Command Line Interface (CLI), that you use by using terminal
- and the Registry

Use npm website to discover packages and set up profiles. The CLI runs from a terminal, and is how most developers interact with npm. The registry is a large public database of JavaScript software and the meta-information surrounding it.

You can use NPM for
- Downloading packages of code for your apps. These packages are standalone tools you can use right away.
- You can run packages without downloading using npx.
- You can share code with any npm user, anywhere.
- You can manage multiple versions of code and code dependencies.
- You can update applications easily when underlying code is updated.

Install NodeJs and npm will be installed with it.
If you use Windows, you can use 'Git for Windows' as terminal program.

And this is how you install a package
npm i package-name
or
npm install package-name

Here is the question:
Do you use NPM, Yarn or a different package manager? And why?
Let us know in comments.

#npm #node #webdevelopment #webstylepress #js #javascript
Thank You!

Channel Support
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

Рекомендации по теме
Комментарии
Автор

Thank you. I have been figuring out the node version problem for two days and your recommended code for mac is really helpful!

itsvenus
Автор

Love you bro! You really really help me.

marceljaruzal