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

Error fetching release: Request failed with status code 404 #9

Open
lgdd opened this issue May 31, 2023 · 5 comments
Open

Error fetching release: Request failed with status code 404 #9

lgdd opened this issue May 31, 2023 · 5 comments

Comments

@lgdd
Copy link

lgdd commented May 31, 2023

Hi @bnheise 👋 I installed the tool using npm -g install ce-cli and when I run ce-cli init in a workspace I got:

Error fetching release: Request failed with status code 404

About my environment:

Node v14.17.6
NPM 6.14.15
macOS 13.2.1 (Darwin 22.3.0)
@bnheise
Copy link
Owner

bnheise commented Jun 1, 2023

Hmm, that's odd. Npm is trying to download the executable file for mac so it can run the command and it's not finding it. Does your mac have an M1 chip? If so that could be the issue as I don't have a pre-compiled executable for M1 available.

You could try installing Rust and then running cargo install ce-cli. That's much more reliable than the npm method because you're guaranteed to get a version that will work with your hardware.

@bnheise
Copy link
Owner

bnheise commented Jun 1, 2023

You could also try downloading the executable directly: ce-cli-x86_64-apple-darwin.tar.gz. You'll have to manually add it to the PATH though.

@lgdd
Copy link
Author

lgdd commented Jun 1, 2023

I'm on an Intel one, so I'm matching Darwin and x64 as type and architecture from your JS script. I'll investigate more on my machine to try to figure this out.

@lgdd
Copy link
Author

lgdd commented Jun 1, 2023

I tested the following Node versions:

❌ v14.17.6 (lts/fermium)
✅ v16.20.0 (lts/gallium)
✅ v18.12.1 (lts/hydrogen)
✅ v19.2.0

And I found out that when install with Node v14, the repository URL in package.json is git+https://github.com/bnheise/ce-cli.git which explain why I got a 404.

@bnheise
Copy link
Owner

bnheise commented Jun 1, 2023

Oh, interesting. I never tried installing with an older version of Node. I should document that.

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