Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.
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 SeniorWhat is a difference between installing npm module locally and globally?
npm SeniorUsing npm, how do you install a package from your local folder?
npm SeniorWhat is a npm package?
npm JuniorHow do you make npm show details about a specific npm command in a browser window?
npm Junior