Can someone tell me where can I find the Node.js modules, which I installed using npm
?
转载于:https://stackoverflow.com/questions/5926672/where-does-npm-install-packages
Can someone tell me where can I find the Node.js modules, which I installed using npm
?
转载于:https://stackoverflow.com/questions/5926672/where-does-npm-install-packages
You can run npm list -g
to see where global libraries are installed.
On Unix systems they are normally placed in /usr/local/lib/node
or /usr/local/lib/node_modules
when installed globally. If you set the NODE_PATH
environment variable to this path, the modules can be found by node.
Windows XP - %USERPROFILE%\AppData\npm\node_modules
Windows 7, 8 and 10 - %USERPROFILE%\AppData\Roaming\npm\node_modules
Non-global libraries are installed the node_modules
sub folder in the folder you are currently in.
You can run npm list
to see the installed non-global libraries for your current location.