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
.