Where are the default node modules stored?
P粉092778585
P粉092778585 2023-09-14 10:19:08
0
2
629

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粉092778585
P粉092778585

reply all(2)
P粉495955986

You can trynpm list -gThis command will list globally installed packages and their paths.

P粉571233520

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template