Prerequisites: Basic Understanding of HTML, CSS, and JavaScript languages.
Package Managers - A Package Manager is a system that will manage your project dependencies, It is a piece of software that lets you manage the dependencies (external code written by you or someone else) that your project needs to work correctly.
Package managers juggle the following pieces of our project -
- Project Code
- Manifest File
- Dependency Code
- Lock File
npm - It is also called Node Package Manager. npm is a software package manager or Installer and it is the world's largest Software Registry, containing over 800,000 code packages.
npm is the default package manager for the JavaScript runtime environment Node.js.
npm manages downloads of dependencies of your project -
Installing all dependencies
If a project has a package.json
file, by running
cmd-
npm install
it will install everything the project needs, in the node_modules folder, creating it if it does not exist already.
Installing a single package
You can also install a specific package by running
cmd -
npm install <package-name>
Other Package Managers -
- npm
- yarn
- pnpm
npm and pnpm are similar from a command line point of view — in fact, pnpm aims to have full parity over the argument options that npm offers. It differs in that it uses a different method for downloading and storing the packages on your computer, aiming to reduce the overall disk space required.
Where npm is shown in the examples below, pnpm can be swapped in and the command will work.
yarn is often thought to be quicker than npm in terms of the installation process (though your mileage may vary).
Your comments are my motivation, please take a second and say 'hi' in the comment box and let me what you think of this blog, it would be very generous to me if you press the "follow" button.
Thank you
Please visit -
Our website -https://techinfo123.tech.blog/
Contact me on various social media platforms -
Facebook - fb.com/ajitawadhiya
Twitter- twitter.com/ajit_awadhiya
Instagram- Insta/ajitawadhiya
Email- ajitawadhiya@gmail.com