Mavericks:如何授予创建的用户与 root 用户相同的权限?

Mavericks: How do you grant a created user the same permissions as the root user?

而不是使用sudo来安装节点模块;如何让管理用户成为 root 用户来全局安装模块。

我已尝试将当前用户设置为管理员并按照 Apple 网站中列出的步骤进行操作。 make user root

这是不成功的

安装模块时,计算机收到此错误:npm ERR! npm ERR! Please try running this command again as root/Administrator.

您可以修复 npm 试图在其中安装东西的目录的权限。有 documentation on the npm website