I was wondering where the default node.js modules are stored on a mac, such as fs, stream, path, etc. I tried looking into my /usr folder, but I couldn’t find anything. Any help is welcome.
Question posted in Javascript
A very good W3school tutorial can be found here.
A very good W3school tutorial can be found here.
2
Answers
You can try
npm list -g
this command will list globally installed packages with their path.The terminal command to find the root location (where global modules are installed) is:
In a Mac, it should be
/usr/local/lib/node_modules
.