Warning “root” does not have permission to access the dev dir · Issue #454 · nodejs/node-gyp · GitHub
Warning “root” does not have permission to access the dev dir ,使用 sudo 仍然抛出这样的权限异常,可在 npm 的参数中增加: –unsafe-perm,如下:
$ sudo npm install --unsafe-perm --verbose -g sails