Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ionic 2 recommendation for ios-deploy fails #1910

Closed
jgw96 opened this issue Feb 9, 2017 · 7 comments
Closed

ionic 2 recommendation for ios-deploy fails #1910

jgw96 opened this issue Feb 9, 2017 · 7 comments

Comments

@jgw96
Copy link
Contributor

jgw96 commented Feb 9, 2017

From @KevinBurton on February 9, 2017 14:8

Ionic version: (check one with "x")
[ ] 1.x
[x ] 2.x

I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
ionic --version shows

******************************************************
 Dependency warning - for the CLI to run correctly,      
 it is highly recommended to install/upgrade the following:     

 Install ios-deploy to deploy iOS applications to devices.  `npm install -g ios-deploy` (may require sudo)

******************************************************

npm install -g ios-deploy fails with ENOENT


Rs-MacBook-Pro:elite-schedule-app-2.0final rebeccaannburton$ sudo npm install -g ios-deploy
npm WARN lifecycle ios-deploy@1.9.1~preinstall: cannot run in wd %s %s (wd=%s) ios-deploy@1.9.1 ./src/scripts/check_reqs.js && xcodebuild /Users/rebeccaannburton/.nvm/versions/node/v7.5.0/lib/node_modules/.staging/ios-deploy-4e4d52dd
npm ERR! Darwin 16.4.0
npm ERR! argv "/Users/rebeccaannburton/.nvm/versions/node/v7.5.0/bin/node" "/Users/rebeccaannburton/.nvm/versions/node/v7.5.0/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v7.5.0
npm ERR! npm  v4.1.2
npm ERR! path /Users/rebeccaannburton/.nvm/versions/node/v7.5.0/lib/node_modules/ios-deploy/build/Release/ios-deploy
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/rebeccaannburton/.nvm/versions/node/v7.5.0/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/rebeccaannburton/.nvm/versions/node/v7.5.0/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/rebeccaannburton/Projects/elite-schedule-app-2.0final/npm-debug.log

Expected behavior:
Simply show the version or give a command that works.

Steps to reproduce:
ionic --version
sudo npm install -g ios-deploy

Related code:

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Your system information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.1.13
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v7.5.0
Xcode version: Xcode 8.2.1 Build version 8C1002



******************************************************
 Dependency warning - for the CLI to run correctly,      
 it is highly recommended to install/upgrade the following:     

 Install ios-deploy to deploy iOS applications to devices.  `npm install -g ios-deploy` (may require sudo)

******************************************************

Copied from original issue: ionic-team/ionic-framework#10371

@AmtrakGit
Copy link

I am facing a similar issue

npm WARN lifecycle ios-deploy@1.9.1~preinstall: cannot run in wd %s %s (wd=%s) ios-deploy@1.9.1 ./src/scripts/check_reqs.js && xcodebuild /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! path /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

@CesarOliveira
Copy link

This worked fo me:

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

with sudo

@Balianos
Copy link

Thank you for the solution @CesarOliveira !!! You saved my day !!!
Additional information :

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

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! WARNING: You are on OS X 10.11 El Capitan or greater, you may need to add the
!!!! WARNING: --unsafe-perm=true flag when running npm install
!!!! WARNING: or else it will fail.
!!!! WARNING: link:
!!!! WARNING: https://github.com/phonegap/ios-deploy#os-x-1011-el-capitan
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@phpmastermind
Copy link

i was having the same issue. thanks @CesarOliveira . this solution worked.

@agallewale
Copy link

agallewale commented Mar 18, 2017

The warning mentions OS X 10.11 El Capitan . But I get the same issue on MacOS Sierra 10.12.3 as well. The above command still worked though.

@natashapp
Copy link

thanks CesarOliveira

@richardgong1987
Copy link

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

@imhoffd imhoffd closed this as completed Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants