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

Failed to find the wasm32-wasi target installed #124

Open
jeff0723 opened this issue Oct 22, 2022 · 3 comments
Open

Failed to find the wasm32-wasi target installed #124

jeff0723 opened this issue Oct 22, 2022 · 3 comments

Comments

@jeff0723
Copy link

I am using cargo-wasi for Shopify functions. However, whenever I run cargo wasi run, the following error shows error: failed to find the wasm32-wasitarget installed, and rustup is also not detected, you'll need to be sure to install thewasm32-wasi target before using this command.

I've tried rustup target add wasm32-wasi command. And I am using mac m1.

@sunfishcode
Copy link
Member

If you run rustup show, what does it print?

@jeff0723
Copy link
Author

Screenshot 2022-10-23 at 09 22 37

@alexcrichton
Copy link
Member

Your error message prints:

and rustup is also not detected

so you may have multiple rustc binaries in your $PATH and you probably want to prefer the rustup-installed one if you're using rustup to install the wasm32-wasi target.

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

3 participants