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

Trying to verify install of anchor is 'Expected "anchor-cli 0.18.2"' #972

Closed
AlanSwenson opened this issue Nov 3, 2021 · 9 comments
Closed

Comments

@AlanSwenson
Copy link

$ anchor --version
Only x86_64 / Linux distributed in NPM package right now.
Trying globally installed anchor.
Globally installed anchor version is not correct. Expected "anchor-cli 0.18.2", found "anchor-cli 0.18.0".

OS: Mac m1

What have I done wrong to make my system expect a version that does not yet exist?

@AlanSwenson
Copy link
Author

restarting my computer seems to have resolved it, if anyone else encounters this weirdness

@fanatid
Copy link
Contributor

fanatid commented Nov 4, 2021

https://www.npmjs.com/package/@project-serum/anchor-cli is working only on Linux x86_64. I added fields that will block npm package installation on unsupported platforms: #976

Also, please do not install npm packages globally, better install locally and run through npx.

@fanatid fanatid closed this as completed Nov 4, 2021
@moza88
Copy link

moza88 commented Nov 7, 2021

Experiencing the same thing, I don't even think there's a 0.18.2 version.

@tkoriginal
Copy link

Same issue and I'm on an Intel Mac. It was working until recently.

@moza88
Copy link

moza88 commented Nov 10, 2021

@tkoriginal I asked around on StackOverflow and figured out how to do a Mac Install. With Macs you need to build the project from github using cargo instead of just downloading the dependencies. Below is a link to the StackOverflow question:

https://stackoverflow.com/questions/69875462/installing-anchor-on-a-macos-anchor-versions-are-not-matching-up

@aviral17
Copy link

How to Install anchor/cli in Windows ??? After installing and after checking/running anchor --version, it shows -------->>

Only x86_64 / Linux distributed in NPM package right now.
Trying globally installed anchor.
Could not find globally installed anchor, install with cargo.

Please help me

@moza88
Copy link

moza88 commented May 11, 2022

@aviral17 Unfortunately, I don't have a windows machine to figure this out. I am not sure why it doesn't run on Windows, we should make it compatible with Windows.

One alternative for you is to use a docker image of solana. I am not sure why it doesn't run on Windows, we should make it compatible with Windows.

Here is the docker image:
https://hub.docker.com/r/solanalabs/solana

Here is a detailed article on developing against the Solana docker image.
https://medium.com/rahasak/deploy-solana-test-network-with-docker-418622c4f566

@Abhi-bot-dot
Copy link

restarting my computer seems to have resolved it, if anyone else encounters this weirdness

Definitely not working for me. Restarted the system, reinstalled everything from npm to yarn, nothing happened, still facing the same error.

@aviral17
Copy link

aviral17 commented Jun 2, 2022 via email

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

6 participants