Open stmoy opened 1 week ago
This issue lacks the environment info requested in the bug template. Please edit your issue report to add this information.
If you are using latest version:
npx @react-native-community/cli --version
:npx @react-native-community/cli run-windows --info
:Otherwise if --info
doesn't exist:
npx @react-native-community/cli -v
:npm ls rnpm-plugin-windows
:npm ls react-native-windows
:node -v
:npm -v
:yarn --version
:
Do you have the error message from when it failed the first time? Since you manually installed I'm guessing that the debug/verbose log won't help at this point.
We should add clarification to the docs on this:
The script suggest running with flags -debug or -verbose, but it's unclear how to do that when the command is: iex (New-Object System.Net.WebClient).DownloadString('https://aka.ms/rnw-vs2022-deps.ps1'); Attempting to do iex (New-Object System.Net.WebClient).DownloadString('https://aka.ms/rnw-vs2022-deps.ps1 -verbose'); did not work.
Problem Description
I ran the script: https://microsoft.github.io/react-native-windows/docs/rnw-dependencies#install-the-development-dependencies on a totally fresh machine (incl. no VS installed). It didn't work -- every step after attempting to install VS through Node.js, Yarn, and .NET SDK failed.
I suspect the issue was that the VS installation didn't complete which caused the other dependencies to fail. Once I manually finished installing Visual Studio, the other dependencies were installed successfully.
Steps To Reproduce
A few other notes:
iex (New-Object System.Net.WebClient).DownloadString('https://aka.ms/rnw-vs2022-deps.ps1');
Attempting to doiex (New-Object System.Net.WebClient).DownloadString('https://aka.ms/rnw-vs2022-deps.ps1 -verbose');
did not work.Expected Results
CLI version
N/A
Environment
Community Modules
No response
Target Platform Version
None
Target Device(s)
No response
Visual Studio Version
None
Build Configuration
None
Snack, code example, screenshot, or link to a repository
No response