The solution to the failure to install react scaffolding: first open Windows PowerShell; then enter "set-ExecutionPolicy RemoteSigned" in the command line; then change the permissions to A; and finally reinstall the react scaffolding.
The operating environment of this tutorial: windows7 system, webstorm2020.3&&react16.4.0 version, Dell G3 computer.
Recommended: react video tutorial
Failed to install react scaffolding, error: create-react-app cannot load the file. . . . .
One of the reasons for failure to install react scaffolding
Error: create-react-app cannot load the file. . . . .
When installing react scaffolding today. I couldn't install it. I thought it was a problem with npm at first, but later I found out it was an issue with administrator rights.
Solution:
1. First open Windows PowerShell (must run as administrator)
2. After opening the command line, enter set-ExecutionPolicy RemoteSigned, change the permissions to A, and then check the current status through get-ExecutionPolicy;
3. After completion, you can install the react scaffolding
The above is the detailed content of What to do if the installation of react scaffolding fails. For more information, please follow other related articles on the PHP Chinese website!