Skip to content

can I use CLI tools like create-react-app to start a new project with modern yarn, no migration? #4522

Answered by kay-o
kay-o asked this question in Q&A
Discussion options

You must be logged in to vote

Here's the approach I'm using currently. I've tried several options. None seems likely to be the 'supported' approach. I'll note this one as a reminder to myself, and for anyone who finds it useful. It seems to be smoother and easier to remember than the alternatives I've tried.

$ cd { path of the project's intended parent directory } # change to a directory level above the intended project directory
$ yarn set version stable # update yarn to a modern version for this dir and its subdirs in place of the yarn classic version installed on my system
➤ YN0000: Retrieving https://repo.yarnpkg.com/3.2.2/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-3.2…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kay-o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant