84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
I want to know where the default node.js modules are stored on Mac, such as fs, stream, path, etc. I tried looking in my /usr folder but couldn't find anything. Any help is welcome.
You can trynpm list -gThis command will list globally installed packages and their paths.
npm list -g
The terminal command to find the root location (global module installation location) is:
npm root -g
On Mac, this should be/usr/local/lib/node_modules.
/usr/local/lib/node_modules
You can try
npm list -g
This command will list globally installed packages and their paths.The terminal command to find the root location (global module installation location) is:
On Mac, this should be
/usr/local/lib/node_modules
.