Sublime Forum

Javascript NodeJS build in ST3

#1

Hi,

I have node installed on my OSX Mavericks. When I try to create a new build system for my node using this code:

{
“cmd”: “node”, “$file”],
“selector”: “source.js”
}

I get this error:

[Errno 2] No such file or directory: ‘node’
[cmd: [‘node’, ‘/Users/jlei523/Dropbox/Coding/Definitive Guide/chapter 3’]]
[dir: /Users/jlei523/Dropbox/Coding/Definitive Guide]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
[Finished]

The thing is, it used to work just fine. When I use my terminal and type in “node”, node loads fine.

0 Likes

#2

This issue could be related to the way ST handle $PATH in osx, try looking here:
viewtopic.php?f=2&t=14585&p=55327&hilit=fix+path#p55327

hope it helps

0 Likes