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.
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!