• error: Appium will not work if used or installed with sudo. Please rerun/install as a non-root user. If you had to install Appium using sudo npm install -g appium, the solution is to reinstall Node using a method (Homebrew, for example) that doesn't require sudo to install global npm packages.

    非 root 权限无法安装 node.js,但是 root 权限下安装 node.js 后,非 root 权限也无法用命令 npm install -g appium 进行安装 appium,用 root 权限安装 appium 后运行时就提示上面的错误信息。求解答,谢谢