yeswework / fabrica-dev-kit

A toolkit for faster, smoother WordPress 5 development
https://fabri.ca/
MIT License
274 stars 27 forks source link

Error: /usr/bin/env: ‘node --harmony’: No such file or directory #32

Closed lcdessantos closed 7 years ago

lcdessantos commented 7 years ago

I got this error on Ubuntu 16.04, Node 6.10:

/usr/bin/env: ‘node --harmony’: No such file or directory

After some googling I discovered that env in Linux doesn't support arguments. So I solved the problem by removing the flag --harmony from the shebang in the file fabrica-dev-kit/index.js.

Please consider removing this flag in the next release.

tiojoca commented 7 years ago

We've added this workaround to fix this problem in Linux: http://sambal.org/2014/02/passing-options-node-shebang-line/ . This will be available when the next version of FDK is published.

Note that we mainly support Mac and test in Linux or other OSes only occasionally. Please let us know if you come across any other issues.

lcdessantos commented 7 years ago

Sure.