how do i insert dependencies in a local package if the npm package is installed globally?

Globally installed dependencies won’t list in your local package.json file. You should still be able to use them requiring/importing into your project.

if you want to save a dependency in your package.json as well when you install it, us --save flag with npm install command. for example

npm install --save express

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top