Home  >  Article  >  Web Front-end  >  How to upgrade react native and node.js in win

How to upgrade react native and node.js in win

藏色散人
藏色散人Original
2021-02-03 10:37:092241browse

Win method to upgrade react native and node.js: 1. Download the latest version of nodejs, and then perform overlay installation; 2. Upgrade the react-native scaffolding, and then upgrade the react-native of the project.

How to upgrade react native and node.js in win

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

How to upgrade react-native and node.js in windows?

How to upgrade node.js in windows

Download the latest version of nodejs directly from the official website, and then install it overlay.

How to upgrade react-native in windows

(1) Upgrade the react-native scaffolding

npm update -g react-native-cli

(2) Upgrade the react-native of the project

For example, if we need to update to version 0.18, we can use the terminal to execute the following command:

npm install --save react-native@0.18
react-native upgrade

To view the latest react-native version, we can use the npm info react-native command.

Recommended: "react tutorial"

The above is the detailed content of How to upgrade react native and node.js in win. 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