-
Notifications
You must be signed in to change notification settings - Fork 469
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
Command fails: npm install ios-deploy -g #109
Comments
Does installing other npm modules globally work? |
Other npm modules install globally fine, yes. Is there any way to check which file it fails to get permissions for? |
You could try download the source: http://github.com/phonegap/ios-deploy |
Oddly enough, making ios-deploy-master by itself works fine. But not "npm install ios-deploy -g" |
The npm-debug.log file has the following lines of interest: 56 verbose tar unpacking to /usr/local/lib/node_modules/ios-deploy |
Fix found: sudo npm install --global --unsafe-perm ios-deploy |
Thanks doomsy. This did the trick for me |
Thanks to doomsy. Help me a lot |
Yes thank you doomsy! It did work for me too. |
worked for me as well! Thank you |
Thanks, doomsy! Worked for me as well |
1 similar comment
Thanks, doomsy! Worked for me as well |
👍 |
Thank you doomsy! Saved my day. |
Thanks! |
Thank you! |
Thanks to doomsy. Help me a lot |
Works great thanks @Doomsy |
This is helpful, and does work, but you know... crazy idea... maybe somebody could update the actual DOCS with this fact, so a thousand people don't separately have to google this ticket. |
Maybe you should actually see that the docs have this before making this assertion? Hint: it does |
hahaha Fair enough, the docs for ios-deploy indeed do mention it... it would be nice if the cordova docs did, too. https://cordova.apache.org/docs/en/5.4.0/guide/platforms/ios/ |
Added 8757ca5 |
You are officially my hero. Thank you. |
just helped me too, thanks! |
Tons of Thanks @Doomsy |
Thanks : ) @Doomsy: sudo npm install --global --unsafe-perm ios-deploy did the trick |
Thanks - that what i needed |
@Doomsy Thanks Man! |
@Doomsy Thanks a bunch Man!! |
Thanks @Doomsy |
1 similar comment
Thanks @Doomsy |
Keep in mind if you freshly installed Xcode to follow-up on @brunobc182 reaction to pick a command line tools item in Xcode preferences. After that I still got an error, but it was also telling me to add --unsafe-perm=true. After that all was fine. (so thanks @Doomsy as well) |
After we added command line tools and install with sudo npm install --global --unsafe-perm ios-deploy |
Me too iOS 10.13.2 High Sierra Got Cordova iOS platform to build after following @Zwilla comment. |
@Doomsy big # thanks, it works !!! |
We get this error: ** BUILD SUCCEEDED ** /Users/macmini/.npm-global/bin/ios-deploy -> /Users/macmini/.npm-global/lib/node_modules/ios-deploy/build/Release/ios-deploy
Requirements check results for ios: We definetly installed it with a command before and it was success... |
thanks to doomsy |
@Doomsy Thanks, it worked! |
Tried both solutions as recommended by @Doomsy and @mefm247 But still it says: UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy' Something to do with path? The package gets installed successfully though.
|
@Doomsy you're the boss!! saved me hs and hs of search |
Thanks @Doomsy you saved the day, cheers!!! |
If any of this methods not working like @dancsdavid mentioned, make a new user from ground on Mac. Then install everything on this new user. |
try the following command
sudo npm install --global --unsafe-perm ios-deploy
…On Mon, May 28, 2018 at 4:01 AM, helpynet ***@***.***> wrote:
If any of this methods not working like @dancsdavid
<https://github.com/dancsdavid> mentioned, make a new user from ground on
Mac. Then install everything on this new user.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlHfvYF-XTkbvMfbVz4EtrwkuwgxHPr8ks5t267zgaJpZM4DxAC2>
.
--
*Yonas Tefera*
*Sr UI Developer / Ionic Developer*
*323-509-6089*
*Contractor | Park Hudson*
|
Thanks doomsy. nice !!!!!! It is working |
Thanks @brunobc182 !! I didn't have my XCode command line tools set! |
|
@Doomsy works like charm, thanks |
@Doomsy Thank you so much, you saved my day |
@Doomsy it worked for me, |
@Doomsy I love you. I spend so much time on trying to solve this problem. |
@Doomsy. It worked for me too. |
@Doomsy You are the man. |
@Doomsy |
Thanks @Doomsy , this worked for me too |
Thanks @Doomsy |
|
You're the man dude |
OSX 10.10.2.
ios-deploy: command not found
Xcode 6.2 (Build 6C131e)
/Applications/Xcode.app/Contents/Developer
Doing an upgrade from Cordova iOS 3.5. Updated cordova to 4.3.
Running command (as root):
npm install ios-deploy -g
Error:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
make: getcwd: Permission denied
rm -rf .app demo ios-deploy
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
gcc -ObjC -g -o ios-deploy -framework Foundation -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
clang: error: unable to make temporary file: Permission denied
make: ** [ios-deploy] Error 1
npm ERR! ios-deploy@1.4.0 preinstall:
make ios-deploy
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the ios-deploy@1.4.0 preinstall script.
npm ERR! This is most likely a problem with the ios-deploy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make ios-deploy
npm ERR! You can get their info via:
npm ERR! npm owner ls ios-deploy
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "ios-deploy" "-g"
npm ERR! cwd /usr/local/bin
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/bin/npm-debug.log
npm ERR! not ok code 0
Have tried switching from gcc to clang. Both produce the same error.
I had tried to fix permissions where it had indicated. The script successfully creates (and later removes) the directory:
/usr/local/lib/node_modules/ios-deploy
But can't seem to write inside the directory it creates (even as root). Unless there's another location it is trying to access?
The text was updated successfully, but these errors were encountered: