Can't find node during build

49 views
Skip to first unread message

Lynn Monson

unread,
Jan 18, 2013, 8:29:05 PM1/18/13
to calatrav...@googlegroups.com
Newbie question...

After installing Calatrava and generating a sample project, I'm unable to build the iOS product.  The error seems to be that node.js isn't found during the xcode build.  I have node installed at /usr/local/bin/node -- but the path that is set during the xcode build doesn't include /usr/local/bin.   Could anyone offer some guidance about how to properly correct the situation?

Thx

Giles Alexander

unread,
Jan 19, 2013, 6:26:03 AM1/19/13
to Lynn Monson, calatrav...@googlegroups.com
Hi Lynn,

Apple has changed how you set environment variables for GUI apps pretty frequently over the years. If you're using Mountain Lion, then try this:


For older OSes, try this:


Giles

Sent from my iPad
--
 

Lynn Monson

unread,
Jan 19, 2013, 2:08:52 PM1/19/13
to calatrav...@googlegroups.com
That fixed it. Thanks.

ppe...@thoughtworks.com

unread,
Jun 16, 2013, 12:14:23 PM6/16/13
to calatrav...@googlegroups.com
For some reason, my Mountain Lion doesn't have a launchctl.conf as Giles mentioned and changing the environment.plist had no effect. So, I submitted a pull request that adds /usr/local/bin to PATH in build_env.sh. This seems to fix it for me.


-Prasanna

On Saturday, January 19, 2013 1:08:52 PM UTC-6, Lynn Monson wrote:
That fixed it.  Thanks.

Giles Alexander

unread,
Jul 5, 2013, 5:31:55 AM7/5/13
to ppe...@thoughtworks.com, calatrav...@googlegroups.com
Just as a note, that file doesn't exist by default. But if you create it, then Mac OS X will pick it up. I'll update my blog post to be more clear.

Giles


--
You received this message because you are subscribed to the Google Groups "calatrava-mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calatrava-mobi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages