Home > Web Front-end > JS Tutorial > What to do if the installation of react scaffolding fails

What to do if the installation of react scaffolding fails

藏色散人
Release: 2022-12-30 11:11:49
Original
3588 people have browsed it

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.

What to do if the installation of react scaffolding fails

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)

What to do if the installation of react scaffolding fails

2. After opening the command line, enter set-ExecutionPolicy RemoteSigned, change the permissions to A, and then check the current status through get-ExecutionPolicy;

What to do if the installation of react scaffolding fails

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template