Home > Web Front-end > JS Tutorial > body text

How to solve the problem of failure to create react in webstorm

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

Solution to the failure of webstorm to create react: 1. Set the npm image to cnpm through the "npm config set registry https://registry.npm.taobao.org" method; 2. Clear the npm cache.

How to solve the problem of failure to create react in webstorm

The operating environment of this tutorial: windows7 system, webstorm2020.3&&react16.4.0 version, Dell G3 computer.

Recommended: react video tutorial

How to solve the problem when webstorm fails to create react?

WebStorm is a commercial JavaScript development tool launched by JetBrains. How to solve the error when creating a react project using webstorm?

The errors that occur when creating a react project are generally the following, and the solution is also very simple.

How to solve the problem of failure to create react in webstorm

Solution:

1. Due to network reasons, some dependent packages failed to load. Solution: Set the npm image to cnpm

npm config set registry https://registry.npm.taobao.org
Copy after login

2. Clear npm cache, directory:

C:\Users\Administrator\AppData\Roaming\npm-cache
Copy after login

Delete all files in this directory and create-react-app again

The above is the detailed content of How to solve the problem of failure to create react in webstorm. 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