Yarn: error: no such option: --pure-lockfile

I’m trying to set up a fresh Mastodon development environment. My development machine is running an up-to-date Debian testing. I also have Node 10.17 installed.

I am following the instructions, although notably, the current version of Mastodon seemed to want Ruby 2.6.5 instead of 2.6.1, so I went back and installed that version. I am unable to get yarn set up in any way, and I’m not sure what to do from here.

mastodon@blagojevich:~/live$ yarn install --pure-lockfile
Usage: yarn [options]
yarn: error: no such option: --pure-lockfile
mastodon@blagojevich:~/live$ yarn install
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
mastodon@blagojevich:~/live$ yarn
00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.

I’m not sure where to go from here and I’d appreciate whatever help anyone can provide!

what does yarn --version say? how did you exactly install yarn?

Debian has a completely different tool under the name ‘yarn’, the instructions given are for Ubuntu only.

Hi there, I managed to get past this problem by (drumroll) reinstalling yarn.
Debian does provide a yarn package which worked (which was still called yarn, incidentally).
Now I have a segfault when trying to run bundle, which I’ll try to pick through and maybe open another thread :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.