【问题标题】:Can not install Appium/Node Js on MacOSX无法在 MacOS 上安装 Appium/Node Js
【发布时间】:2014-11-30 12:31:43
【问题描述】:

我在 Mac OSX 上安装 Appium 时遇到问题。

brew uninstall node

brew install node

警告:安装后步骤未成功完成 您可以使用 brew postinstall 节点重试

brew postinstall node

Error: Permission denied - /usr/local/lib/node_modules/npm

我应该在这里与“SUDO”一起使用吗??

sudo brew postinstall node

最好的问候, 可可

【问题讨论】:

    标签: node.js macos bash appium


    【解决方案1】:

    基于this forum,如果向下滚动到底部...步骤应该是:

    brew uninstall node
    sudo rm -r /usr/local/lib/node_modules/
    rm -r /Users/username/.npm/ # replace username with your user
    brew install node
    

    【讨论】:

      【解决方案2】:

      安装 Node.js

      使用“sudo chown -R whoami ~/.npm”更改所有者

      使用安装 appium “npm install -g appium”

      【讨论】:

        猜你喜欢
        • 2019-05-16
        • 2015-03-06
        • 2018-07-27
        • 1970-01-01
        • 2017-08-30
        • 2021-07-19
        • 2021-12-28
        • 2020-02-26
        • 2021-02-08
        相关资源
        最近更新 更多