fabiospampinato / cliflix

Watch anything instantaneously, just write its name.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cliflix cat't start - /usr/bin/env: - no such file error

mpuz opened this issue · comments

Ubuntu 20.04.3 LTS
Node v14.17.2

Cliflix produces error on start -

/usr/bin/env: ‘node --no-deprecation’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

all other globally installed modules work as usual

The same error.

Fedora 32
Linux lenovo 5.11.12-100.fc32.x86_64 #1 SMP Wed Apr 7 16:52:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
NPM 6.14.12
Node v12.22.1

Hi,

I've got the same issue and fixed it.
The simple fix is to revert this commit: 9b3fd27

"On Linux, the entire string following the interpreter name is passed as a single argument to the interpreter, and this string can include white space." I don't know if that's the case on Mac. See this SO for more info https://stackoverflow.com/a/8108970/4338111

For a quick fix, just go to your npm bin directory (location depends on your distro and if you're using nvm) and remove '-- no-deprecation'

For a more in depth fix, maybe revert the commit I linked above to be more compatible with more environments.