I am a beginner in node.js and i understand that when we use npm install then a folder node_modules get created and the library/package is stored inside it. But where are the packages stored when the package is installed globally ?
Asked
Active
Viewed 355 times
2 Answers
1
Do npm list -g
to see the location of the installed libraries and the packages installed as well.

ASM
- 169
- 3
- 12
0
If you are using Windows, it should be at: C:\Users\{Username}\AppData\Roaming\npm\xxxx.cmd
Also, if your open powershell just type get-command xxxx
It tells you where xxxx command is.

Xin
- 33,823
- 14
- 84
- 85