Skip to content

Command fails: npm install ios-deploy -g #109

Closed
@guiix-code

Description

@guiix-code

OSX 10.10.2.
ios-deploy: command not found
Xcode 6.2 (Build 6C131e)
/Applications/Xcode.app/Contents/Developer

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

clang --version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

Doing an upgrade from Cordova iOS 3.5. Updated cordova to 4.3.

Running command (as root):

npm install ios-deploy -g

Error:

ios-deploy@1.4.0 preinstall /usr/local/lib/node_modules/ios-deploy
make ios-deploy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions