DEV Community

Cover image for Package Managers
Mohammad ALi Abd Alwahed
Mohammad ALi Abd Alwahed

Posted on

Package Managers

npm , pip , composer,maven
What are those and why do we use them?
These are package managers for different programming languages: npm for JavaScript, composer for PHP, pip for Python, and Maven for Java, among others. In any project, it is necessary to download and install packages to facilitate the work or save time, such as language libraries and other packages. Each package has different versions, and we choose the one that is compatible with our project. To ensure that the team is using the same packages, we create a package.json file that lists all the packages needed, and a lock file that specifies the exact versions used. This way, anyone who downloads the packages using the package manager will get the same versions as everyone else on the team. When we write "npm install" or "composer install", for example, the package manager downloads all the packages listed in the package.json file and installs them with the versions specified in the lock file.
composer for PHP
npm for js
pip for python
maven for java
and there are many more for sure
in conclusion: package managers are used mainly to share what packages did we install in the project in what version and with one click share it with anyone else or at the server
that's it!
link for the Arabic post :
https://lnkd.in/djZ8q-vu

Top comments (0)