I am trying to migrate from NPM to Yarn for the sole reason of getting rid of 'node_modules' folder.
I am trying to use CRA tool. However, on CRA it advises to use yarn create
, which is not a command found in Yarn 2 documentation. After some research I found out that I should use yarn dlx
command, which is equivalent to npx
.
The problem is that to use yarn dlx
, I must have Yarn 2 first. Yarn 2 requires that I install it locally in my project directory. This way, I am forced to have a second layer of folder structure.
I want to create-react-app
in a folder on my Desktop called myApp. But, I need to create myApp folder to install Yarn 2 before I can even start using dlx to run create-react-app
.
Am I missing something?
Thank you.