Configuration problems running NodeJS scripts with 'shebang' at the begining
17 Jun 2014, 12:43
Filip Abramowicz (2 posts)
Running the script (on Ubuntu 12.04) which starts with the following line:
’#!/usr/bin/env node –harmony’
ends up with:
‘/usr/bin/env: node –harmony: No such file or directory’
I’ve already tried: checking if there is execution permission on the partition, reinstalling NodeJS, creating symlink from node to nodejs
Nothing really worked, but what is strange executing the same script without ‘–harmony’ just with:
at the begining - worked well. I know that the ‘–harmony’ part is for some reason there and I am also sure this is some strange configurational issue related to my Ubuntu but perhaps somebody knows some other way (other syntax) to invoke node with the ‘–harmony’ part at the begining of this script?
14 Aug 2014, 04:08
Todd Decker (7 posts)
For Ubuntu 14.04 the following works:
You’ve probably figured out by now that on Ubuntu, ‘node’ is named ‘nodejs’.
|You must be logged in to comment|