The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
npm install -g ios-deploy not works in Mojave 10.14.1 and Xcode 10.1
Somebody have a solution? The error is:
firstname.lastname@example.org preinstall /usr/local/lib/node_modules/ios-deploy
> ./src/scripts/check_reqs.js && xcodebuild
stderr: xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! email@example.com preinstall:
./src/scripts/check_reqs.js && xcodebuild
npm ERR! Exit status 1
npm ERR! Failed at the firstname.lastname@example.org preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
As mentioned in the error message,
This is probably not a problem with npm.
The ios-deploy issues may help: