http://my.oschina/JeeChou/blog/219699


获取前缀目录

npm config get prefix


加入到环境变量的path 中

D:\Program Files\nodejs\node_global