Where can you find modules that the npm installed globally after you executed the npm install -g command?
Experience Level:
Senior
Tags:
npm
Answer
If you install the module globally using the command npm install -g <module-name>
, it will be installed to a global directory.
On Windows, it is %userprofile%\AppData\Roaming\npm\node_modules
Related npm job interview questions
-
Using npm, how do you publish a package to the public repository?
npm Senior -
What is a difference between installing npm module locally and globally?
npm Senior -
Using npm, how do you install a package from your local folder?
npm Senior -
What is a npm package?
npm Junior -
How do you make npm show details about a specific npm command in a browser window?
npm Junior