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
npm for beginners
npm for beginners

Are you learning npm? Try our test we designed to help you progress faster.

Test yourself