Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

no prebuilt cargo-generate binaries are available for this platform - MacBook M1 #1742

Closed
ukd1 opened this issue Jan 20, 2021 · 4 comments
Closed

Comments

@ukd1
Copy link

ukd1 commented Jan 20, 2021

This is very likely related to #1402, however it's a different platform, and the work around suggested in that issue did not work for me.

Environment

  • operating system: macOS 11.0.1
  • output of rustc -V: rustc 1.49.0 (e1884a8e3 2020-12-29)
  • output of node -v: zsh: command not found: node
  • output of wrangler -V:👷 ✨ wrangler 1.13.0
  • contents of wrangler.toml: nil

Steps to reproduce

What did you expect to see?

A templated example generated

What did you see instead?

% wrangler generate rustwasm-markdown-parser https://github.com/cloudflare/rustwasm-worker-template/
⬇️   Installing cargo-generate v0.5.0...
Error: could not download `cargo-generate`
no prebuilt cargo-generate binaries are available for this platform

I've tried:

cargo install --version 0.5.0 cargo-generate

this works...

% cargo generate --version
cargo-generate 0.5.0

but the error continues. I've tried copying the cargo-generate binary in to the wrangler cache folder as suggested in #1402, but nothing changes.

@yongfook
Copy link

experiencing same issue

@HackettYu
Copy link

I use npm 7.4.3 to generate the project, and it works on my machine(macbook M1).

Environment

  • operating system: macOS 11.1.0
  • output of rustc -V: rustc 1.49.0 (e1884a8e3 2020-12-29)
  • output of node -v: v14.15.4
  • output of usr/local/bin/wrangler -V:👷 ✨ wrangler 1.13.0
  • output of ~/.cargo/bin/wrangler -V:👷 ✨ wrangler 1.13.0
  • contents of wrangler.toml: nil
 /usr/local/bin/wrangler generate my-project https://github.com/cloudflare/worker-template
⬇️   Installing cargo-generate v0.5.0...
🔧   Creating project called `my-project`...
✨   Done! New project created /Users/hackettyu/repos/demo/cloudflare/my-project
...

but...

https://github.com/cloudflare/wrangler#installation

If you are running an ARM based system (eg Raspberry Pi, Pinebook) you'll need to use the cargo installation method listed below to build wrangler from source.

@xtuc
Copy link
Member

xtuc commented Feb 8, 2021

Closing because it's a duplicate of #1685

@xtuc xtuc closed this as completed Feb 8, 2021
@nilslice
Copy link
Contributor

This should be fixed in the latest release. Please give it a try and let us know if you still are hitting any errors:

npm i -g @cloudflare/wrangler@1.16.1 or cargo install wrangler --version 1.16.1

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