Skip to content

Conversation

@csbarnes
Copy link

@csbarnes csbarnes commented May 13, 2020

If npx react-native run-windows is not run from an elevated Command Prompt it will fail.

edit: for the first run

If `npx react-native run-windows` is not run from an elevated Command Prompt it will fail.
@chrisglein chrisglein requested a review from asklar May 13, 2020 15:21
@chrisglein
Copy link
Member

@asklar has done some review of where we need elevation. Adding him to requested reviewers to comment.

@asklar
Copy link
Member

asklar commented May 13, 2020

@asklar has done some review of where we need elevation. Adding him to requested reviewers to comment.

Yes, now this should only happen for some cases. The short of it:

  • The first time you run it, we may have to enable developer mode which requires elevation. We prompt for elevation now if we need it so it doesn't fail.
  • For debug builds on C++ projects, we deploy from layout so registering the APPX is not necessary which lets us avoid elevation
  • For release builds, we'll prompt for elevation if we need to in order to install the app signing certificate and uninstall the existing app.

I also have a PR out for a script to check and install any dependencies that may be missing which will alleviate some of this too. See microsoft/react-native-windows#4876

@ghost
Copy link

ghost commented Sep 29, 2021

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@ghost ghost closed this Oct 6, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants