Skip to content

Commit d5ca7fa

Browse files
HariniMalothu17Harini Malothuvineethkuttan
authored
Fix rnw-dependencies.ps1 Node.js installation failures (#1132)
## Description The rnw-dependencies.ps1 script fails to install Node.js with the error: `WARNING: There was a problem trying to install Node.js (LTS, >= 22.0)` ### Type of Change - Bug fix (non-breaking change which fixes an issue) ### Why - The script requests version 22.14.0 from `OpenJS.NodeJS.LTS`, but this is a rolling package that now only contains 24.x versions (22.14.0 exists in `OpenJS.NodeJS.22`, not `.LTS`) Resolves [Add Relevant Issue Here] ### What - Removed hardcoded Node.js version - Now installs latest LTS instead of a specific version that may not exist ## Screenshots <img width="1199" height="322" alt="image" src="https://github.com/user-attachments/assets/cb7bb3f2-06cf-4faa-8427-9c223c6d44b8" /> ## Testing tested on a new vm .Worked as expected ## Changelog Should this change be included in the release notes: no Add a brief summary of the change to use in the release notes for the next release. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows/pull/15548) ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1132) --------- Co-authored-by: Harini Malothu <hmalothu@microsoft.com> Co-authored-by: Vineeth <66076509+vineethkuttan@users.noreply.github.com>
1 parent b928025 commit d5ca7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rnw-dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Alternatively, you can setup your environment manually:
5353
Options to install [Node.js](https://nodejs.org) separately:
5454
- Using [WinGet](https://aka.ms/winget) (_React Native recommended_). To use WinGet, from an elevated Command Prompt, run:
5555
```bat
56-
winget install OpenJS.NodeJS.LTS --version 22.14.0
56+
winget install OpenJS.NodeJS.22 --version 22.22.0
5757
```
5858
- Using [another package manager](https://nodejs.org/en/download/package-manager/) such as [Scoop](https://scoop.sh/) or [Node Version Switcher (nvs)](https://github.com/jasongin/nvs)
5959
- Directly from [Node.js](https://nodejs.org/en/download)

0 commit comments

Comments
 (0)