Commit d5ca7fa
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments