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

Help people install node.js #6

Open

Description

@subtleGradient

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.

Activity

  1. por commented on Aug 1, 2011

    @por

    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
    
  2. heygambo commented on Aug 19, 2011

    @heygambo

    thx! That really grinded my gears :)

  3. davidcalhoun commented on Sep 8, 2011

    @davidcalhoun

    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.

  4. heygambo commented on Sep 20, 2011

    @heygambo

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

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

  5. kristoferjoseph commented on Nov 1, 2011

    @kristoferjoseph

    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

  6. dtan commented on Nov 12, 2011

    @dtan

    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.

  7. kristoferjoseph commented on Nov 13, 2011

    @kristoferjoseph

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

  8. dtan commented on Nov 13, 2011

    @dtan

    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

  9. simonwheatley commented on Dec 18, 2011

    @simonwheatley

    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.

  10. Laner commented on Jan 27, 2012

    @Laner

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

  11. subtleGradient commented on Jan 27, 2012

    @subtleGradient
    OwnerAuthor

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

  12. Laner commented on Feb 1, 2012

    @Laner

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

  13. subtleGradient commented on Feb 3, 2012

    @subtleGradient
    OwnerAuthor

    @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

  14. Laner commented on Feb 5, 2012

    @Laner

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

  15. subtleGradient commented on Feb 9, 2012

    @subtleGradient
    OwnerAuthor

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

  16. Laner commented on Mar 21, 2012

    @Laner

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

  17. subtleGradient commented on Mar 21, 2012

    @subtleGradient
    OwnerAuthor

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

  18. Laner commented on Mar 21, 2012

    @Laner

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

  19. subtleGradient commented on Jul 3, 2012

    @subtleGradient
    OwnerAuthor

    That's in a different bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions