question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] Support yarn2

See original GitHub issue

I upgraded to yarn2 and now the Redwood scripts all fail with a variation of the Couldn't find a script named"rw" (or named "redwood").

~/Sites» yarn create redwood-app ./supporters-united-rw                     [9:31:05]
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 1.95s
➤ YN0000: ┌ Fetch step
➤ YN0013: │ supports-color@npm:7.2.0 can't be found in the cache and will be fetched
➤ YN0013: │ tar-stream@npm:1.6.2 can't be found in the cache and will be fetched from
➤ YN0013: │ to-buffer@npm:1.1.1 can't be found in the cache and will be fetched from
➤ YN0013: │ unbzip2-stream@npm:1.4.3 can't be found in the cache and will be fetched
➤ YN0013: │ yauzl@npm:2.10.0 can't be found in the cache and will be fetched from the
➤ YN0000: └ Completed in 1.96s
➤ YN0000: ┌ Link step
➤ YN0007: │ core-js-pure@npm:3.6.5 must be built because it never did before or the last one failed
➤ YN0000: └ Completed in 1.36s
➤ YN0000: Done in 5.29s

  ✔ Creating Redwood app
    ✔ Creating directory '/Users/bill/Sites/supporters-united-rw'
    ✔ Downloading latest release
    ✔ Extracting latest release
    ✔ Clean up
  ✔ Installing packages
    ✔ Checking node and yarn compatibility
    ✔ Running `yarn install`... (This could take a while)

Thanks for trying out Redwood! We've created your app in '/Users/bill/Sites/supporters-united-rw'

Inside that directory you can run `yarn rw dev` to start the development server.

* Join our Discord server: https://discord.gg/jjSYEQd
* Join our Discourse Community: https://community.redwoodjs.com
* Signup to the Newsletter: https://www.redwoodjs.com
~/Sites» cd supporters-united-rw                                            [9:33:11]
~/Sites/supporters-united-rw» yarn rw dev                                   [9:33:27]
Usage Error: Couldn't find a script named "rw".

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kltdwrdscommented, Oct 23, 2020

@peterp oh nice - i’ll give that a go.

1reaction
kltdwrdscommented, Oct 23, 2020

Since upgrading to yarn2 sounds potentially backwards incompatible, it’s worth mentioning the recent release of npm v7, which includes workspaces

I know redwood relies on yarn workspaces for its concept of “sides”, but I’m curious about the yarn requirement / history of that decision. Are there other things yarn offers that make it a better choice than npm?

Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC: `yarn@berry` (2/3/4) / PnP support · Issue #370 ... - GitHub
I want to be able to use yarn 's zero-install feature (i.e. PnP) inside a project and still have VSCode language server support....
Read more >
Introducing Yarn 2 ! - DEV Community ‍ ‍
Hi everyone! After exactly 365 days of very intensive development, I'm extremely happy to unveil the first stable release of Yarn 2.
Read more >
Selective dependency resolutions - Yarn
Yarn supports selective version resolutions, which lets you define custom package versions ... See the Selective Versions Resolutions RFC for the full spec....
Read more >
Yarn to npm - Issues · GitLab.org / Frontend / RFCs
If anyone wants to give it a go: Here's a migration guide for yarn v1 to v2. Here's a command line tool for...
Read more >
RFC: Monorepo support - Development - ReScript Forum
RFC : Monorepo support ... [ANN] rescript-vscode 1.4.0 and 1.4.2 released ... Yarn supports yarn global bin and NPM and PNPM both support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found