NPM install-g Ios-deploy The solution to the failure problem reproduced

Source: Internet
Author: User

When using Cordova or ionic command lines,

NPM install-g Ios-deploy

or sudo npm install-g ios-deploy all error,

Such as:

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.3.0
NPM err! argv "/usr/local/bin/node" "/USR/LOCAL/BIN/NPM" "Install" "-G" "Ios-deploy"
NPM err! Node v5.8.0
NPM err! NPM v3.7.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 the most likely not a problem with NPM itself
NPM err! Enoent and is related to NPM, being able to find a file.
NPM err! Enoent


The problem solving method can be found in https://github.com/phonegap/ios-deploy/issues/188, which is actually:

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


This time it gives a hint:

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

Original: http://blog.csdn.net/cooldragon/article/details/50925633

NPM install-g Ios-deploy The solution to the failure problem reproduced

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.