Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Help people install node.js #6

Open
subtleGradient opened this issue Jul 31, 2011 · 19 comments
Open

Help people install node.js #6

subtleGradient opened this issue Jul 31, 2011 · 19 comments
Assignees

Comments

@subtleGradient
Copy link
Owner

This bundle now requires node.js.

I need to add some documentation describing how to install it and how to configure your PATH in TextMate.

@ghost ghost assigned subtleGradient Jul 31, 2011
@por
Copy link

por commented Aug 1, 2011

EDIT: Fixed this by going to TextMate → Preferences → Advanced → Shell Variables and adding /usr/local/bin, basically the path to where node lives on my machine ($which node).

I have node.js installed with brew, but getting this error on Cmd+S. Is that related to this issue?

Couldn't find node

Locations searched:

/Users/tim/Library/Application Support/TextMate/Bundles/javascript-tools.tmbundle/Support/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/usr/bin
/bin
/usr/sbin
/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin

@heygambo
Copy link

thx! That really grinded my gears :)

@davidcalhoun
Copy link

Ah, this was quite annoying. I have my node install in another place too and had no idea where to start looking to fix this, other than reinstalling Node in one of those directories.

@heygambo
Copy link

I installed Node using Brew and put this into my PATH Shell Variable:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

@kristoferjoseph
Copy link

NOTE: you need to remove the last node from which node.
example:
which node returns /Users/foo/local/node/bin/node ( or something similar ) what you put in at the end of your PATH variable in Textmates advanced preferences panel is /Users/foo/local/node/bin

@dtan
Copy link

dtan commented Nov 12, 2011

I'm still having issues with the "JSHint" pop up dialog box when saving a js file

/Users/username/Library/Application Support/TextMate/Bundles/javascript-tools.tmbundle/Support/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/lib/node
/Applications/TextMate.app/Contents/SharedSupport/Support/bin

I have node installed in /usr/local/lib/node. I also added that to my TextMate's PATH variable but that pop up is still showing that error.

@kristoferjoseph
Copy link

Path needs to be set in TM path as /usr/local/lib/node/bin. At least that was what worked for me.

@dtan
Copy link

dtan commented Nov 13, 2011

pointing it to /usr/local/lib/node/bin still doesn't work for me. in the interim, i've just disabled the JSHint keyboard shortcut

@simonwheatley
Copy link

I installed on Macports by:

  • From the Terminal: sudo port install nodejs
  • Made a cup of tea
  • In TextMate prefs > Advanced > Shell Variables I already had a PATH variable, so I double clicked on the value and appended :/opt/local/bin
  • Close TextMate prefs

Worked straightaway for me. YMMV.

@Laner
Copy link

Laner commented Jan 27, 2012

I used homebrew. And none of the above paths work :(

@subtleGradient
Copy link
Owner Author

Now that node.js has a proper Mac installer, I highly recommend that everyone install it that way.

@Laner
Copy link

Laner commented Feb 1, 2012

Great!
But to no avail. Installed it this way, but no go in Textmate :(

@subtleGradient
Copy link
Owner Author

@Laner

  1. open Terminal.app
  2. type echo $PATH

Mine returns…

iMac:~ thomas$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

If you don't have /usr/local/bin in your $PATH then you have something goofed up in your bash profile somehow.

tl;dr — make it work in the Terminal and it should Just Work™ in TextMate

@Laner
Copy link

Laner commented Feb 5, 2012

Hmmm. /usr/local/bin is in the path. Weird. All I want is something like labs.codecademy.com for my mac. Any suggestions?

@subtleGradient
Copy link
Owner Author

@Laner this bundle doesn't really do anything quite like that.

@Laner
Copy link

Laner commented Mar 21, 2012

@subtleGradient To bad. But is there a way to test run js from textmate and get console.logs and alert/prompts?

@subtleGradient
Copy link
Owner Author

Oh of course. I have various Run JavaScript commands that execute code in WebKit or Node.js or even PhantomJS.

@Laner
Copy link

Laner commented Mar 21, 2012

I can't get node.js to work.
How do I run js through webkit, if you don't mind me asking

@subtleGradient
Copy link
Owner Author

That's in a different bundle

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants