ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Error: npm install -g ios-deploy

Open Aditya-app-dev opened this issue 10 years ago • 12 comments

Hello,

I am not able to install ios-deploy in OSX. Below is the error:

npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] ./src/scripts/check_reqs.js && xcodebuild /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v6.4.0
npm ERR! npm  v3.10.3
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 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/AdityaBatra/Documents/xcode/sidemenuapp/npm-debug.log

Attached npm-deploy.log file

npm-deploy.txt

Aditya-app-dev avatar Sep 13 '16 11:09 Aditya-app-dev

same here

gekonwi avatar Oct 11 '16 00:10 gekonwi

overcame the error by running the following on OS X 10.11.6:

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

gekonwi avatar Oct 11 '16 00:10 gekonwi

I had the same issue too, @gekonwi's solution worked for me.

tomibady avatar Jan 14 '17 17:01 tomibady

I have this issue as well. My OSX is macOS Sierra which is 10.12.2 but apparently during the installation, it is recognized as El Capitan 10.11, the warning message shown below. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! WARNING: You are on OS X 10.11 El Capitan, 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

Adding --unsafe-perm=true does solve the problem for me but I am not sure if it is the correct things to do.

This has been confirmed in another thread, https://github.com/npm/npm/issues/10055 answered by VGerris

rickykennedy avatar Jan 23 '17 02:01 rickykennedy

Run @gekonwi solution on OS 10.11, works just fine :D

felipeladislau avatar Mar 16 '17 15:03 felipeladislau

Thanks @gekonwi sudo npm install -g ios-deploy --unsafe-perm=true worked for me too on MAC OS 10.10.5.

raydelto avatar May 16 '17 12:05 raydelto

My build script is ionic cordova build ios --prod --release --buildConfig ./build.config, it worked before ionic cli 3.0beta, but now failed with same error. I haven't used --debug option, weird, theoretically ios-deploy is not required since it's only a build, not deploy.

qiluo avatar May 24 '17 07:05 qiluo

Thanks @gekonwi, this problem took my sleep, until I tried your solution

MrAshTag avatar Jun 05 '17 02:06 MrAshTag

Thanks @gekonwi

Rasfuranku avatar Aug 26 '17 18:08 Rasfuranku

Thanks @gekonwi sudo npm install -g ios-deploy --unsafe-perm=true this worked for me on MAC OS 10.12.6.

developer8972 avatar Oct 10 '17 16:10 developer8972

I had the same error. Thanks to @gekonwi . --unsafe-perm=true works for me.

feiandytan avatar Jan 22 '18 07:01 feiandytan

@gekonwi worked for me, saved my day, thanks

nitishbhardwaj1111 avatar Oct 24 '18 10:10 nitishbhardwaj1111