下载官方pkg安装的node,npm install -g color后,color module可以确认安装在了/usr/local/lib/node_modules,在terminal里键入node后,比如var color = require('color'),会提示cannot find module 'color'。
开始我以为是path问题,于是在PATH里加入了/usr/local/lib/node_modules。
现在echo $PATH 会显示/usr/local/lib/node_modules存在path里。但是依然cannot find module 'color'
求解我是不是漏掉了什么