ionic-team / ionic-lab-issues

Issues to track for the Ionic Lab project.
4 stars 2 forks source link

Mac OS X.11.4 iOS install error => env: node: No such file or directory #97

Open kematzy opened 8 years ago

kematzy commented 8 years ago

I just installed Ionic Lab (v0.29.1) and tried a number of projects, but all with the same result.

I'm getting the following error when clicking on the "Install" button for iOS or Android.

`No version supplied. Retrieving version from config.xml... Adding ios project... Running command: /Users/kematzy/.cordova/lib/npm_cache/cordova-ios/3.8.0/package/bin/create --cli /Users/kematzy/Downloads/MY-DB/platforms/ios com.ionicframework.mydb976677 MY-DB env: node: No such file or directory

Command finished with error code 127: /Users/kematzy/.cordova/lib/npm_cache/cordova-ios/3.8.0/package/bin/create --cli,/Users/kematzy/Downloads/MY-DB/platforms/ios,com.ionicframework.mydb976677,MY-DB `

What is wrong??

My system info is:

`$ ionic info

Your system information:

Cordova CLI: 6.1.1 Gulp version: CLI version 3.9.1 Gulp local: Ionic CLI Version: 1.7.14 Ionic App Lib Version: 0.7.0 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v5.0.0 Xcode version: Xcode 7.2 Build version 7C68`

hansgill commented 8 years ago

I have the same issue, and unable to figure out what it can be. Anyone?

akpepr commented 8 years ago

Install node.js. If you open the batch file create, you would see this line at the very beginning "#!/usr/bin/env node" which is basically looking for a node instance. Install it by using the command "brew install node".