Questions tagged [dependency-management]

Managing dependencies, such as third-party libraries, is crucial for ensuring the smooth operation of a software project.

Setting up node version 6.10.3 as a required NPM package

Currently working on projects utilizing the serverless framework to eventually be deployed to AWS Lambda, my end goal is to have them run seamlessly with the same version of node that is supported on AWS Lambda - which happens to be node 6.10.3. Despite ad ...

Performing a hands-free npm installation with --legacy-peer-deps activated, tailored specifically for an

Let's imagine a scenario where I have a package.json structured like this: { "name": "my-app", "version": "0.1.0", "dependencies": { "@aws-sdk/client-s3": "^3.21.0", & ...

Setting up package-lock.json as the definitive source of dependencies truth

I had a similar question to the one asked on Stack Overflow about package.json and package-lock.json (in summary; "what's the difference between package.json and package-lock.json?") and found some insightful answers there. However, I still have some relat ...

What steps can be taken to manage obsolete packages that are needed by a dependency in the package-lock.json file?

Imagine having a dependency called some_dep that has a security vulnerability. The guidance provided on GitHub is to “Upgrade some_dep to version 2.2.3 or newer.” But things become complex when you realize that some_dep is a necessary dependency of an ...

What are the advantages of utilizing peer dependencies over regular dependencies post npm 7?

Imagine this scenario: You are currently working on a project called cool-app and it relies on both react and cool-package: "dependencies": { "react": "^16.0.0", "cool-package": "^1.0.0" } Unfortunatel ...

Is there a similar feature to npm link in composer for PHP projects?

During my JavaScript module development process, I utilize npm link to easily install my local version into projects that require the module as a dependency. This method provides a seamless workflow. Although not quite as ideal as TDD, this approach simpl ...

Installing packages globally and locally with npm leads to the installation of varying components

There seems to be a discrepancy in the results I get when installing a package with --global compared to a local installation. For instance I recently installed https://github.com/sverweij/dependency-cruiser $ npm install --save-dev dependency-cruiser W ...