yarn : The term 'yarn' is not recognized as the name of a cmdlet, function, script file, or operable program

Updated at 21-Aug-2022, By samar

I am getting error yarn : The term 'yarn' is not recognized as the name of a cmdlet, function, script file, or operable program after running the command yarn create react-app my-app.

  • You have to run the – npm install -g yarn to install the yarn in your local machine. After that you can run the yarn –version to check if the yarn is successfully installed or not.

    After executing the above command now you can run yarn create react-app my-app command to create a react app using yarn.

Back to code snippet queries related nodejs