microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.28k stars 1.14k forks source link

Dependency Script fails to install dependencies on new machine #12715

Open acoates-ms opened 8 months ago

acoates-ms commented 8 months ago

When running the rnw-dependencies.ps1 script on a newly installed machine I get an error saying:

WARNING: There was a problem trying to install Visual Studio 2022 (>= 17.3) & req. components. Re-run with -Debug for
details.

and it fails to install Visual Studio, or any other dependency.

acoates-ms commented 8 months ago

This was fixed by going to https://www.microsoft.com/p/app-installer/9nblggh4nns1#activetab=pivot:overviewtab and updating the App Installer package.

chrisglein commented 8 months ago

We don't helpfully indicate if you have an older version of winget (because that might have been what comes with your OS). So we need to explicitly check for your winget version to make sure it's some minimum.

joshuayoes commented 7 months ago

For applying installed suggestions, I've developed a winget configuration that has been working for me. https://github.com/joshuayoes/ReactNativeWindowsSandbox

chrisglein commented 3 months ago

@chiaramooney with your latest fix to the script in https://github.com/microsoft/react-native-windows/pull/13372, can you resolve this too?

chiaramooney commented 3 months ago

@chrisglein Unclear. I didn't' install VS on my machine using the new script; I had already installed it manually before. We would have to go in and verify what this behavior is.