Can someone tell me where can I find the Node.js modules, which I installed using npm
?
The command npm root
will tell you the effective installation directory of your npm packages.
If your current working directory is a node package or a sub-directory of a node package, npm root
will tell you the local installation directory. npm root -g
will show the global installation root regardless of current working directory.
$ npm root -g
/usr/local/lib/node_modules
See the documentation.