终端说: `
$ npm root -g
/opt/node-v6.10.0-linux-x64/lib/node_modules
$ ls /opt/node-v6.10.0-linux-x64/lib/node_modules
babel-core/ cnpm/ gulp/ http-server/ webpack/
bower/ create-react-app/ gulp-cli/ npm/
$ http-server
http-server: command not found
$ gulp
No command 'gulp' found, did you mean:
Command 'gslp' from package 'ghostscript' (main)
gulp: command not found
$ node -v
v6.10.0
$ npm -v
3.10.10
` /opt/node-v6.10.0-linux-x64/lib/node_modules中的模块应该是全局的,但是当我在cmd中调用它们时,它们就找不到了。可能出现的问题是什么?
PS。我使用的是ubuntu 16.04 LTS。
谢谢!