Ubuntu 上默认的全局 node _ module 文件夹在哪里? 例如,这个文件夹在哪里安装: npm install -g gulp
npm install -g gulp
Run npm root -g to see the location, which varies. A common path is /usr/local/lib/node_modules.
npm root -g
For more info see the npm docs on Global vs. Local installation