Home  >  Article  >  Web Front-end  >  Can react be used in windows?

Can react be used in windows?

藏色散人
藏色散人Original
2021-01-19 09:58:042097browse

Window can use react. The installation method of React under Windows is: first download node.js in "nodejs.org/en/download/"; then enter "npm -v" on the command line. Just verify whether the installation is successful.

Can react be used in windows?

The operating environment of this article: windows7 system, Dell G3 computer, react17.0.1 version

Recommended: "react video tutorial

Can react be used in window?

window can use react. Installation and use of React under Windows

1. npm installation

Download node.js:

https://nodejs.org/en/download/

Enter at the command line:

npm -v

to verify whether the installation is successful.

2. cnpm installation

Installation command:

npm install -g cnpm --registry=https://registry.npm.taobao.org

Enter at the command line:

cnpm -v

to verify whether the installation is successful.

3. Create a React project and run it

npx create-react-app my-app
cd my-app
npm start

The above method is the official website method, it may be too slow, you can use the following method

npm config set registry https://registry.npm.taobao.org
npx create-react-app todolist
cd todolist
npm start

4. View the project

Browser input address: localhost:3000

Run result

Can react be used in windows?

The above is the detailed content of Can react be used in windows?. 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