Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

What is a global installation of dependencies?

0 votes
What is global installation of dependencies?
asked Nov 11, 2018 in Node.js by Sanchit Kapur

1 Answer

0 votes
Node Package Manager (NPM) globally means packages/dependencies are stored globally in your system. This drops modules in {prefix}/lib/node_modules, and puts executable files in {prefix}/bin, where {prefix} is usually like /usr/local. It also installed in man pages like {prefix}/share/man, if they passed this params.

To installed packages/dependencies Globally in system then execute the following command:-
    $ npm install express -g
answered Dec 4, 2018 by john12 (3,120 points)