node.js v4.2.2 安装time模块是出错node
gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/countly/nodejs/lib/node_modules/time/.node-gyp/0.10.36"express
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/countly/nodejs/lib/node_modules/time/.node-gyp"npm
百度了很久资料,终于发现了解决办法,特此记录ide
sudo npm install time -g --unsafe-perm spa
增长了--unsafe-perm generator
顺便写一下新颁布 express 的安装it
npm -g install express io
npm -g install express-generatorclass