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.
npm install --save express
CLICK HERE to find out more related problems solutions.