Home  >  Article  >  Web Front-end  >  How to solve the problem of failure to create react in webstorm

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

藏色散人
藏色散人Original
2021-01-12 10:27:372386browse

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

2. Clear npm cache, directory:

C:\Users\Administrator\AppData\Roaming\npm-cache

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!

Statement:
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
Previous article:what is react webpackNext article:what is react webpack