Home > Article > Web Front-end > How to solve the problem of failure to create react in webstorm
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.
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.
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!