使用npm install -g ‘xxx‘ 之后仍然报 Cannot find module ‘xxx‘ 错误,可以通过设置环境变量来解决;
node.js
原文:http://my.oschina.net/u/2274056/blog/529543