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

Can react be used in windows?

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

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/
Copy after login

Enter at the command line:

npm -v
Copy after login

to verify whether the installation is successful.

2. cnpm installation

Installation command:

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

Enter at the command line:

cnpm -v
Copy after login

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
Copy after login

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
Copy after login

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!

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