npm 包管理器的使用

1. 权限问题

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

猜你喜欢

转载自blog.csdn.net/lanchunhui/article/details/80289877