You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This stackoverflow answer will likely be your solution. If you look at the top of your /home/michael-heuberger/npm/bin/coffee file, you should see the line
#!/usr/bin/env node
This is where the /usr/bin/env: node error is coming from.
One other potential issue:
Some OS's may refer to the node bin as nodejs. If that's the case, you should be able to run which nodejs and then symlink /usr/bin/node to that in the manner described in the stackoverflow above. Let me know if this helps!
Also when I run that coffee script directly, it works:
# michael-heuberger at M2 in ~/npm/bin [9:25:35]
$ ./coffee
coffee>
(^C again to quit)
coffee>
# michael-heuberger at M2 in ~/npm/bin [9:25:39]
$ cat coffee
#!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
require(lib + '/coffee-script/command').run();
# michael-heuberger at M2 in ~/npm/bin [9:25:50]
$ ./coffee
coffee>
Whenever I hit ALT-SHIFT-D to compile into JS, sublime shows me that above error:
But I already have the binDir specified in CoffeeScript.sublime-settings:
which is correct because of:
And it's installed:
Using latest iojs here
Any clues what's wrong?
The text was updated successfully, but these errors were encountered: