The solution to the problem that react installation yarn keeps reporting that it is not an internal command: 1. Uninstall yarn through the command "pm uninstall yarn -g"; 2. Reinstall yarn using "npm install yarn"; 3. In the system variable path Add "C:\WINDOWS\system32\node_modules\yarn\bin"; 4. Re-open cmd and execute the "yarn -v" command.
The operating environment of this tutorial: Windows 10 system, react18.0.0 version, Dell G3 computer.
What should I do if the react installation yarn keeps reporting that it is not an internal command?
The problem occurred while installing yarn, 'yarn' is not recognized as an internal or external command, operable program or batch file.
Occurred during the previous installation
'yarn' is not an internal or external command, an operable program or batch file.
Then
Uninstall npm uninstall yarn -g
Recommended study:《
react video tutorialThe above is the detailed content of What should I do if the react installation yarn keeps reporting that it is not an internal command?. For more information, please follow other related articles on the PHP Chinese website!