NodeJS icon indicating copy to clipboard operation
NodeJS copied to clipboard

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

Open wilburluce opened this issue 11 years ago • 5 comments

..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..

wilburluce avatar Nov 19 '14 22:11 wilburluce

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

danielkec avatar Nov 20 '14 13:11 danielkec

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 avatar Dec 23 '14 18:12 raparlasiva

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

raparlasiva avatar Dec 23 '14 19:12 raparlasiva

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.

jcrben avatar Aug 16 '15 01:08 jcrben

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};

danielkec avatar Sep 28 '15 19:09 danielkec