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.
P粉4959559862023-09-15 09:24:03
You can trynpm list -g
This command will list globally installed packages and their paths.
P粉5712335202023-09-15 00:28:26
The terminal command to find the root location (global module installation location) is:
1 |
|
On Mac, this should be /usr/local/lib/node_modules
.