Discord App Wont Close

Delete AppData Discord Storage Folder Contents. Now close the Windows Explorer and start the Discord app. The app should work normally now. Note: If this doesn’t solve the issue then follow the steps given below. Hold Windows key and press E; Type%AppData% in the address bar of Windows Explorer and press Enter; Locate the Discord folder. Locate discord’s folder and delete everything. Reboot your system & re-install the app. Go to Task Manager in the desktop menu and open the Process tab. Here, you need to end all the discord.exe processes and relaunch the app. Go to C Drive and type the following: C: Users Langly AppData Roaming discord Cache”.

  1. Discord App Closing
  2. Discord App Won't Close Without
  3. Discord App Wont Close

Are you getting a JavaScript error when trying to install or launch Discord? Don’t worry, you are not alone. Many Discord users are reporting this problem. It states “A Fatal Javascript error occurred. Error: EPERM: operation not permitted.” In this step-by-step guide, we’ll show you how to fix this error so that you can install and use Discord flawlessly.

How to fix the Fatal Javascript error on Discord

This error can occur for different reasons including corrupted Discord files, antivirus software blocking the application, the Quality Windows Audio Video Experience service not working, etc. Whatever the reason, here are some solutions that are proven to be effective in resolving this issue.

Fix 1 – Delete Temporary Discord Files

Like many programs, Discord continuously saves temporary data on your computer to make sure it runs as efficiently as possible. However, sometimes, those temporary files can become corrupt and cause errors. In this case, you need to delete these specific files to get rid of the problem.

Here’s how you do it:

1. Open the Task Manager via Ctrl-Shift-Esc and then close Discord.

2. Press Windows+R to open the Run dialog.

3. Type “%appdata%” into the text field and hit Enter.

4. In the AppData/Roaming folder, locate the Discord folder, right-click on it and select Delete from the context menu.

5. Once deleted, again open the Run dialog and this time, type “%Localappdata%” into the text field and hit Enter.

6. Once again, locate the Discord folder and delete as you did in the above step.

7. Now try to launch the Discord setup file and follow the steps provided to reinstall the software.

Check to see if this tweak helped you fix the JavaScript error. If not, move on to the next fix.

Fix 2 – Add Discord to the antivirus exception

Certain Antivirus apps are known to block specific Discord installation files during the install process. This results in Discord no longer being able to access the files to complete the process, thus giving the fatal JavaScript error message.

To ensure that the antivirus is not causing this error, add Discord to your antivirus software’s exception list. For details on how to create an exclusion, refer to your antivirus documentation.

Fix 3 – Edit Startup Type of the qWAVE Service

Reportedly, many players managed to get rid of this error by simply editing the Startup Type of the Quality Windows Audio Video Experience (qWAVE) Service. If you also want to give this trick a try, take the following steps:

1. Press Win+R keys to launch the Run dialog.

2. Type “services.msc” in the text field and hit Enter.

3. In the Services window, locate the Quality Windows Audio Video Experience service, then right-click on it and select Properties from the menu.

4. If the Service status is showing Started, click on the Stop button to stop the service.

5. Then click on the Start button to run it again.

6. Now, make sure the Startup type is Automatic. If it is not, click on the drop-down menu and select the Automatic option from the list.

7. Click Apply > OK to save your changes.

Now restart your computer and check if the Discord error still appears. If it does, continue to the next solution.

Fix 4 – Take away Admin Privileges from Discord

Sometimes this JavaScript error occurs when you have granted administrator privileges to Discord. Hence, taking these admin privileges away from the software can solve your issue. Here are the steps:

1. Locate the Discord executable, right-click on it and select Properties from the menu.

App

2. Click the Compatibility tab and uncheck the box parallel to Run this program as an administrator.

3. Click OK and restart your computer.

Fix 5 – Reinstall Discord

In some cases, even when you have installed Discord successfully, you still experience the JavaScript error. The best solution to this problem is to uninstall the program and then reinstall it.

You can do this by following these simple steps:

1. Type “Control Panel” in the Windows search bar and press Enter to open it.

2. Click on the Uninstall a program link under the Programs heading.

3. Locate Discord, then right-click on it and select Uninstall.

4. Once uninstalled, press Win+R keys to launch the Run utility.

5. Type “%appdata%” in the Run text field and hit Enter.

6. In the new window, locate the Discord folder and delete it.

7. Reopen the Run box, then type “%localappdata%” and hit Enter.

8. Once again, locate the Discord folder and delete it.

9. Now go to the Discord official website and download the latest and compatible version of Discord.

10. Once downloaded, run the executable file and follow the on-screen instructions to install the program.

Discord should now install and launch without any errors.

Fix 6 – Use Command Prompt

If the problem continues to appear even after applying the above workarounds, we recommend making some changes using the Command Prompt.

1. Press Win+R keys to open the Run dialog.

Discord App Closing

2. Type “taskmgr” in the text field and hit Enter.

3. In the Task Manager, select Discord from the list of running processes and click the End task button.

4. Now follow steps 1 to 8 from the Fix 5 to uninstall Discord as well as delete it from both of the Local Data and AppData folders.

5. After doing this, again press Win+R keys to bring up the Run dialog.

6. Type “cmd” into the box and then press Ctrl+Shift+Enter to open the Command Prompt as an administrator.

7. In the Command Prompt, type the following command and press Enter to execute it:

8. Wait until the process is completed, then close the Command Prompt.

9. Now, reinstall Discord and check to see if the issue still persists.

There you have it – 6 most common ways of fixing the fatal JavaScript error you sometimes encounter when using or trying to install Discord.

Be sure to hit us up in the comments if you have any specific questions. We will try to answer them as soon as we can!

READ NEXT

If you’re experiencing Discord not responding, crashing, or Discord not opening issue, take a deep breath and try the solutions below.

The information here is a general guide to help you rule out common causes of Discord not working issues.

Try these fixes:

You may not have to try them all. Just work your way down the list until you find the one that works.

Fix 1: Restart your computer

If you’re running multiple programs on your computer, it’s very likely that your PC memory is overloading, and fails to support Discord. In this case, try restarting your PC to turn off all programs and processes completely.

Note: Please make sure there is no unsaved file on your PC before turning off your PC.

If Discord fails after the reboot, move on to the fix below.

Fix 2: Update Discord

Discord’s developer releases regular updates to fix bugs. It’s likely that a recent update is causing your issue and a update is needed to fix it. Follow the instructions below to update Discord:

1) On your keyboard, press the Windows logo key and R at the same time to open the Run dialog

2) Type %localappdata%, then click OK.

3) Double-click Discord.

4) Double click Update.exe and wait for the update process to be complete.

5) Relaunch Discord to test your issue.

If this didn’t solve your issue, go ahead with the fix below.

Fix 3: Turn off Hardware Acceleration

Ordinarily, when you run an application, it uses the standard CPU on your computer. If you run a heavy task, such as screen sharing, to work effectively, your app will use other hardware components on your PC. If you have good hardware, enabling Hardware Acceleration will result in better performance of your application; however, if your hardware is weak, this feature may cause problems for you.

To see if this is the core issue, try turning off Discord Hardware Acceleration if it’s on, or vice versa. Here is how to do it:

1) Run Discord, then click the Settings icon.

2) Click Appearance, if Hardware Acceleration is on, turn it off, or vice versa.

3) Click Okay.

4) Reopen Discord to see if this has resolved your issue.

Wont

If not, try the next fix.

Fix 4: Reset Discord Settings

Improper voice settings can also cause Discord to fail. If you’ve recently changed any settings in Discord, try resetting it to default. Follow the instructions below:

1) Run Discord, and then click the Settings icon.

2) Click Voice & Video, then Reset Voice Settings.

3) Click Okay.

4) Try sharing your screen again to test your issue.

Hope the lagging issue has been fixed. If not, move on and check the fix below.

Fix 5: Delete Discord cache files

Corrupted cache files can also cause Discord issues. To see if that’s the issue for you, try clearing Discord Roaming data. Here is how to do it:

1) Close Discord.

2) On your keyboard, press the Windows logo key and R at the same time.

3) Type %appdata% and click OK.

4) Highlight the Discord folder, then press the DEL key on your keyboard to delete the folder.

5) Relaunch Discord to test your issue.

Discord App Won't Close Without

If Discord still won’t work, move on and try the fix below.

Fix 6: Disable your antivirus temporarily

Your problem is sometimes caused by interference from antivirus software. To see if that’s the problem for you, temporarily disable your antivirus program and check if the problem persists. (Consult your antivirus documentation for instructions on disabling it.)

If Discord works properly after you disable the antivirus software, contact the vendor of your antivirus software and ask them for advice, or install a different antivirus solution.

Note: Be extra careful about what sites you visit, what emails you open and what files you download when your antivirus is disabled.

Discord App Wont Close

Fix 7: Run Discord as an administrator

Discord may require administrator privileges to perform certain functions. To see if this is your problem, try running it as an administrator. Here is how to do it:

1) Exit Discord if it’s running.

2) Right-click the Discord icon and select Properties.

3) Click the Compatibility tab, check the box next to Run this program as an administrator, then click OK to save the changes.

If your problem still exists, try the fix below.

Fix 8: Reinstall Discord

This issue occurs if Discord is not properly installed on your PC, or if certain Discord files are corrupted. In this case, reinstalling Discord is very likely the solution. Here is how to do it:

1) On your keyboard, press the Windows logo key. Then, type control and click Control Panel.

2) Under View by, click Category, and then select Uninstall a program.

3) Right-click Discord and click Uninstall.

4) Download and install Discord.

Fix 9 : Use a VPN

Streaming videos on Discord could take up a lot of bandwidth and slow down the internet connection. If you’re using a closed private network, such as your work/school network, and you can access Discord normally, it‘s possible that your bandwidth’s being capped. In this case, you can use a VPN to bypass bandwidth throttling.

VPN stands for Virtual Private Network. Using a VPN lets you disguise your IP address from anyone who wants to track you, making your online activity completely anonymous, so the network you’re connected to can’t tell what site you’re trying to visit.

There’re many reliable VPNs to choose from, such as NordVPN, ExpressVPN, Surfshark, CyberGhost VPN, etc. Take NordVPN as an example here. You can follow the steps below to see how to unblock Discord on your Windows device with it:

  1. Download NordVPN and install it.
  2. Log into your account.
  3. Click the Quick connect button at the bottom of the map, then the app will automatically choose a server that suits you best.

Hope this article helped in resolving your problem. Please feel free to leave a comment below if you have any questions and suggestions.

Comments are closed.