Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

env: can't execute 'node --harmony': No such file or directory #33

Open
torsjonas opened this issue Jan 10, 2018 · 5 comments
Open

env: can't execute 'node --harmony': No such file or directory #33

torsjonas opened this issue Jan 10, 2018 · 5 comments

Comments

@torsjonas
Copy link

env: can't execute 'node --harmony': No such file or directory

Getting this in Alpine Linux running in a Docker container. Seems that passing the --harmony flag won't work on some Linux distributions, as described for example here:
lambtron/emojipacks#94

Seeing that the --harmony flag was there at Dec 12 2016.

#!/usr/bin/env node --harmony

Could the flag be dropped now to support more linux distributions?

@torsjonas
Copy link
Author

In my case I can monkey patch the module to make it work, like so
sed -i "1s/ --harmony//" node_modules/oas-raml-converter/lib/bin/converter.js

@postatum
Copy link

postatum commented Jun 13, 2018

Same on Linux Mint 18.3

@foospidy
Copy link

foospidy commented Sep 2, 2018

Same when using FROM ubuntu in docker.

@spetrashov
Copy link

The same issue with official node docker image.
8.12 and 10.11 both built from buildpack-deps:jessie which is basicaly debian.

@cpedrero-datio
Copy link

In my case I can monkey patch the module to make it work, like so
sed -i "1s/ --harmony//" node_modules/oas-raml-converter/lib/bin/converter.js

Thanks @torsjonas, but in my case with another docker stable image as node:10.16.1-alpine, I uninstalled oas-raml-converter first like this way:

npm uninstall oas-raml-converter
npm --prefix /oas-raml-converter run build

sed -i "1s/ --harmony//" /oas-raml-converter/lib/bin/converter.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants