|
|
|
|
|
by bakje
1783 days ago
|
|
Right? I'm a web developer and work a lot with PHP. PHP's de facto package manager is Composer and it's very simple and clear in how it works: Your composer.json states your dependencies and their version constraints. Your composer.lock (also a json file) states the actual versions that should be installed, based off your composer.json. "composer install" installs the exact versions from your composer.lock file, "composer update [package]" updates the lock file based on your constraints. With npm this doesn't seem to be as straight-forward, sometimes I run "npm install" and the package-lock.json ends up changing, I definitely don't consider npm to be safe. |
|