ios-deploy fail to install on Mac OS X El Capitan 10.11

后端 未结 6 1082
情书的邮戳
情书的邮戳 2021-02-19 17:50

I am trying to install ios-deploy on Mac OS X El Capitan 10.11 by running sudo npm install -g ios-deploy and it end up with this error message:

sh:          


        
相关标签:
6条回答
  • 2021-02-19 17:57

    This seems to be an issue since El Capitan. Either try:

    npm install -g ios-deploy --unsafe-perm=true
    

    or:

    npm install -g ios-deploy --allow-root
    

    This solution is proposed at the relating github from ios-deploy.

    0 讨论(0)
  • 2021-02-19 18:07

    Here is a new Solution, which is working right now.....

    You need Download Xcode from APP Store, in X-code go in Preferences > Location > Command Line Tools, then select one of the listed options. After that you can install:

    sudo npm install -g ios-sim sudo npm install --global --unsafe-perm ios-deploy

    0 讨论(0)
  • 2021-02-19 18:09

    I tried with different ways.

    This line worked for me.

    sudo npm install -g --unsafe-perm ios-deploy

    0 讨论(0)
  • 2021-02-19 18:12

    See Newer StackOverflow https://stackoverflow.com/a/59581099/329984

    The Homebrew and npm versions will be updated at the same time going forward.

    To use ios-deploy as a command-line tool it is recommended you now install it directly via Homebrew(and if you have already installed it via npm to uninstall it).

    https://github.com/ios-control/ios-deploy#installation

    0 讨论(0)
  • 2021-02-19 18:23

    npm with allow root or unsafe params didn't worked for me. try brew. Command would be

    brew install ios-deploy
    

    if you don't have brew install then its couple of seconds. install here https://brew.sh/

    brew was the only thing worked on my mac-mini High Sierra

    0 讨论(0)
  • 2021-02-19 18:23

    iOS-deploy allow us install and debug iPhone apps from the command line, without using Xcode. The first line works for me.

    npm install -g ios-deploy --unsafe-perm=true

    0 讨论(0)
提交回复
热议问题