Pauan / SaltyBetBot

Bot which automatically bets on saltybet.com
39 stars 12 forks source link

Error when running yarn build #34

Closed Leurus closed 3 years ago

Leurus commented 3 years ago

Getting this error when running yarn build, even on a fresh download. Tried upgrading yarn and clearing cache to no avail.

image

Pauan commented 3 years ago

Hmmm, I can't reproduce this, a fresh installation works fine for me.

What are all of the commands that you used?

What version is your yarn? Judging by the screenshot, it's quite old.

Leurus commented 3 years ago

This is the version I get, and the error I get when I try to update. Thought I already updated also but now it's not letting me.

image

The commands I used in order are:

rustup install nightly rustup override set nightly yarn yarn build

No issues until I tried to do yarn build

Pauan commented 3 years ago

How did you install yarn?

Leurus commented 3 years ago

I used the guide you posted to install it. It's been a long time. I haven't changed anything since it was last working a few months ago.

Pauan commented 3 years ago

There are two ways to install yarn: using npm install --global yarn, or installing a binary file. Which did you use?

Leurus commented 3 years ago

I used npm install --global yarn - also just tried that again to upgrade and I'm getting the same error when trying yarn build.

Pauan commented 3 years ago

Okay, in that case you have to use npm update --global yarn in order to upgrade your yarn. After that your yarn --version should show 1.22.10

Also, what does your node --version show? You probably need to update your Node.js as well, since Rollup requires a fairly recent version of Node.js.

Leurus commented 3 years ago

My node version is 8.11.1 but I can't upgrade because the download I get from that site requires Windows 8 or 10, whereas I have 7.

Pauan commented 3 years ago

That's definitely too old. You can try installing from here.

Leurus commented 3 years ago

That's fixed it. Thanks!