Error Opening RStudio Windows 11

I recently started receiving a "JavaScript error occurred in the main process" error message when trying to open RStudio. I've tried uninstalling R and RStudio and I'm still getting the following error message. I've contacted my company's help desk for assistance but they were not able to resolve the issue.

Are others getting a similar error message or know of a fix? Thank you.

Be sure to delete all remaining elements of RStudio off your system when attempting to install/reinstall, especially on a corporate networked environment (Registry Keys, System AppData, User Roaming AppData, User Local AppData, and any environment variables, etc.).

I noticed this issue: resolve intermittent failure to launch with development electron builds on Windows · Issue #10694 · rstudio/rstudio ( but which is similar but not in the same circumstances as your issue.

To me this seems to be a firewall or network restrictions issue when rstudio attempts to launch some webpack loader that may call an external API to get latest version details or something. No idea.

If you can, also try adding the RStudio executable to Defender Exclusions and check firewall settings:

#Requires -RunAsAdministrator
Add-MpPreference -ExclusionPath "$Env:PROGRAMFILES\RStudio\rstudio.exe"

Update from the OP: rolling back to version 2023.06.2 - 561 fixed the issue for anyone else seeing this error.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.