brettpetch / hosted-scripts

Installers for additional applications not yet integrated into the Swizzin Hosted Platform.
GNU General Public License v3.0
87 stars 18 forks source link

[BUG] overseerr - `python` is not a valid npm option #12

Closed WowSuchRicky closed 1 year ago

WowSuchRicky commented 1 year ago

What happened?

Steps to reproduce:

  1. Run curl command in README to install overseer
  2. Receive error during 'Installing dependencies via yarn': npm ERR!pythonis not a valid npm option

Expected results: Installation should succeed.

Suspiciously related: https://stackoverflow.com/a/74523071/2402061 https://github.com/brettpetch/hosted-scripts/blob/master/overseerr.sh#L50 npm doesn't seem to like setting arbitrary config values as of some recent version, which is likely breaking this.

I also do have python installed and which python doesn't seem to error out when I run it manually so I am a bit confused why that if statement is triggering; may be mis config on my part though.

Relevant logs and output

nvm is already installed.
Node LTS installed.
Installing Yarn
Yarn installed.
Downloading and extracting source code
Code extracted
Installing dependencies via yarn
npm ERR! `python` is not a valid npm option

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/r/.npm/_logs/2023-04-04T21_13_25_987Z-debug-0.log
willadamskeane commented 1 year ago

Running into the same issue.

eliob83 commented 1 year ago

Downgrading npm to version 8 solves this, as stated in the given link: npm install -g npm@^8