Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #44

Closed
annyiahgardner opened this issue Mar 2, 2021 · 10 comments
Closed

install error #44

annyiahgardner opened this issue Mar 2, 2021 · 10 comments

Comments

@annyiahgardner
Copy link

I tried installing it with NPM, but I keep getting this error.
C:\Users\annyi>npm install -g miraclx/freyr-js
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/miraclx/freyr-js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.

@miraclx
Copy link
Owner

miraclx commented Mar 2, 2021

The installation method requires git to be installed.
Git is what pulls all the code onto your device.
NPM thereafter, just installs it.
Please install git and try again.

@annyiahgardner
Copy link
Author

[email protected] postinstall C:\Users\annyi\AppData\Roaming\npm\node_modules\freyr\node_modules\youtube-dl

npm run check && npm run download

[email protected] check C:\Users\annyi\AppData\Roaming\npm\node_modules\freyr\node_modules\youtube-dl
bin-version-check python '>=2'

Error: Invalid version range
at module.exports (C:\Users\annyi\AppData\Roaming\npm\node_modules\freyr\node_modules\bin-version-check\index.js:12:25)
at Object. (C:\Users\annyi\AppData\Roaming\npm\node_modules\freyr\node_modules\bin-version-check-cli\cli.js:29:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] check: bin-version-check python '>=2'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] check script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\annyi\AppData\Roaming\npm-cache_logs\2021-03-02T23_38_33_086Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: npm run check && npm run download
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\annyi\AppData\Roaming\npm-cache_logs\2021-03-02T23_38_35_866Z-debug.log

C:\Program Files\Git>freyr
internal/modules/cjs/loader.js:883
throw err;

@miraclx
Copy link
Owner

miraclx commented Mar 2, 2021

First, verify you have all of freyr's dependencies satisfied, including the version numbers https://github.com/miraclx/freyr-js#requirements

Example: python >= v3.2 means it needs python installed with a version no lesser than 3.2

Please report what version of python you have installed.

@annyiahgardner
Copy link
Author

Python 3.9.2

@miraclx
Copy link
Owner

miraclx commented Mar 2, 2021

Confirm that binary is available on your PATH.
That is, can you run

C:\Users\annyi>python --version

@miraclx
Copy link
Owner

miraclx commented Mar 2, 2021

It's likely you have python installed locally and is not globally accessible in the sense I mentioned above.

Show a snippet of how you check the version, to be sure.

@annyiahgardner
Copy link
Author

When I run it, I don't see anything about PATH.
C:\Users\annyi>python --version
Python 3.9.2

@annyiahgardner
Copy link
Author

Node.js v14.16.0
ffmpeg version 2021-01-27-git-149bfc2445
AtomicParsley version: 20210124.204813.0

@miraclx
Copy link
Owner

miraclx commented Mar 2, 2021

Got it! I'm investigating this.

This seems to be an issue with a direct dependency itself przemyslawpluta/node-youtube-dl#358

@miraclx miraclx closed this as completed in dff835b Mar 3, 2021
@miraclx
Copy link
Owner

miraclx commented Mar 3, 2021

node-youtube-dl, the dependency causing issues introduced a broken commit 102de70 that validates the python version before installing itself. Either the assertion or tool used was broken. I've fixed this by locking the version on the last tested version 3.4.0.

You should be good now, retry npm install -g miraclx/freyr-js.

I've tested it and it works as expected here.

I'll add a lockfile to the repo to fix issues like these, or if you're amenable, contributions are welcome!

@miraclx miraclx mentioned this issue Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants