二进制node解压在/home下,就是/home/keke/node cd /home/keke/node bin/npm install -g express 安装成功,在lib/node_module下有express 可是在/home/keke/node/www下执行…/bin/node helloworld.js时候报出如下错误: module.js:340 throw err; ^ Error: Cannot find module ‘express’ at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at Object.<anonymous> (/home/keke/node/www/helloworld.js:1:77) at Module._compile (module.js:449:26) at Object.Module._extensions…js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.runMain (module.js:492:10)
这是什么原因?我是-g全局安装express的,为什么会找不到express