What is npm?

701 views

I am new to web development but not programming, I have learnt HTML, CSS and bootstrap, but it says we have to use npm to install Bootstrap. I have been hearing about it now for a long time. I have googled about it, and it says package manager, but people also use it for creating JSON file and stuff. Now keeping in mind I am completely a noob in the web development field please explain it to me npm in simple terms, please. Thank you!

In: Technology

2 Answers

Anonymous 0 Comments

NPM is a collection of small packages of JavaScript code that do things. Think of them like blocks of Lego. The open source community make these blocks and publish them to an open area for you to download and run. There’s loads of them and they do all sorts of things from controlling a browser to controlling different forms of JavaScript like Node or acting like a live server. To use it you run your terminal app and type it’s name followed by the package you want to run.

Anonymous 0 Comments

NPM ( node package manager) as the name suggests manages the dependencies of your node project. For example you can use it to install Bootstrap and use it in your project.
NPM makes use of a JSON file to keep track of your dependencies. It contains stuff like which library to install, what version, etc. There’s another JSON file which contains information about the application: the name, author, what command to run on startup, etc.