danielkec / NodeJS

Plugin for support of Node.js in the Netbeans IDE
http://plugins.netbeans.org/plugin/36653/nodejs
Other
22 stars 8 forks source link

/bin/sh: line 1: node: command not found #3

Open wilburluce opened 9 years ago

wilburluce commented 9 years ago

..when i right click on a js file and select "run with node". I have node in /usr/local/bin and symlink to /usr/bin..

danielkec commented 9 years ago

Hello willburluce, you can customize cmd in Options>Miscellaneous>Node.js

raparlasiva commented 9 years ago

I have the same problem..I can navigate to Preferences>Miscellaneous>Node.js..but don't know what should i do after that..if you can show us in screen shots that will be great.

raparlasiva commented 9 years ago

screen shot 2014-12-23 at 1 59 11 pm

jcrben commented 9 years ago

I ran into the same issue running OSX 10.10.4 and using nvm. Apparently the PATH for Netbeans does not include node. This isn't all that surprising: GUI apps don't always have access to the same PATH as terminal applications which generally source .bash_profile/.bashrc. See https://github.com/creationix/nvm/issues/381 for relevant discussion.

danielkec commented 9 years ago

Re: @wilburluce @raparlasiva Why don't use full path to the node bin? Customized run command can look like this:

cd ${workingdir};
/usr/local/bin/node ${selectedfile};