Discord Error EPERM Operation Not Permitted

Discord is undoubtedly one of the most trending platforms for instant messaging, meetups, and sharing ideas and strategies while gaming and streaming. You can use this program over the browser or the dedicated application.

But, the Discord app is not free from errors. Users have complained that they are witnessing the ‘Discord error EPERM operation not permitted’ message when they launch the application.

This is tagged as a Discord fatal JavaScript error and prevents users from opening the application. According to experts, a corrupted installation of the Discord application can trigger the issue.

On the other hand, we can’t discard the chances of corrupted installation of antivirus software or similar third-party applications that can drive you to a particular JavaScript error.

Generally, you can mend this ‘Discord error EPERM operation not permitted’ issue by repairing the Discord data or files. A reinstallation can also help. But, if there’s some kind of interference with third-party applications, then you have to use other troubleshooting ideas.

Let’s check how you can handle such a Discord fatal JavaScript error.

Delete Discord AppData

Discord applications store data or files to run smoothly on the computer interface. They are user logs, configurations, cached thumbnails, etc., and the application uses them so that you can quickly access the application.

If the Discord AppData folder is corrupted, you might encounter the ‘Discord error EPERM operation not permitted’ problem.

You can delete the existing AppData folder of Discord, and it will eliminate the corruption. After that, Discord will automatically re-generate the AppData folder again. Before removing the AppData folder, end each Discord process using the Task Manager on your Windows PC.

Here’s what you need to follow for the rest of the method:

  1. Press the keyboard shortcut Windows+E to launch File Explorer.
  2. Go to the navigation bar at the top and enter ‘%appdata%’. This will redirect you to the particular Windows user account’s AppData folder.
  3. Find the Discord folder and right-click on it.
  4. Choose the Delete option from the pop-up menu.
  5. Next, move to the Recycle Bin and right-click on its icon.
  6. Click the option that says, ‘Empty Recycle Bin’.

Once you have deleted the Discord AppData folder, the desktop app will regenerate the AppData folder on its own. It will instruct you to sign in again and load configuration files.

If you’re still facing the Discord error EPERM operation not permitted issue, then go to the next solution.

Run the Discord Desktop App as an Administrator

The admin rights can make a difference. Discord desktop app can run on both standard and administrator Windows user accounts. So, it’s worth attempting to run the app with admin privileges.

Go through the instructions below:

  1. Navigate to the C:\Users\user_name\AppData\Local\Discord file path using Windows File Explorer. Here, user_name stands for the particular user’s profile folder.
  2. You will witness numbered folders, such as app-0.0.307, inside the Discord folder. Sort the content of the folder according to the Date Modified option.
  3. Next, locate the executable file of the Discord app and right-click on it. Choose Properties from the menu.
  4. Go to the Compatibility tab. Check the box next to the ‘Run this program as an administrator’ option. Proceed with a click on the OK button.

Now, you can double-click on the Discord.exe option. You have to pass the User Access Control prompt with a Yes when it opens. If there has been any difficulty due to another service using the Discord desktop app, then adding the admin privileges would solve the issue.

Let Your Antivirus Software Allow Discord

Another reason behind the ‘Discord error EPERM operation not permitted’ problem is the interference with the antivirus program. Discord operates within the AppData folder and works with an update file every time you open it.

It makes sure that you can get the scope to work with the latest Discord version. However, the installed antivirus application on your computer might have restrictions against this mechanism. As a result, it can block the Discord desktop app and prevent it from running properly.

Therefore, you should allow the Discord desktop app through your antivirus software. Head towards the security settings of the antivirus software and enable permissions for the Discord app. The steps might vary from one antivirus to another. So, check the instructions online for your system’s antivirus.

Reinstall the Discord Application

If you haven’t found the solution to the ‘Discord error EPERM operation not permitted’ issue, then you can try this hack. When any fatal JavaScript error occurs, an entire reinstallation of the Discord desktop app might be useful.

Use the following guidelines to uninstall and reinstall the desktop app of Discord:

  1. Press the Windows button and click on Settings from the Start menu.
  2. Select Apps, and then click on Apps & Features. Scroll down to locate the Discord application.
  3. Click the Discord entity on the menu and click on Uninstall.
  4. Confirm the process by hitting the Uninstall button again.
  5. After you have successfully removed the Discord desktop application, go to the official website of Discord.
  6. Download the latest version of Discord that is compatible with your PC.

Make sure that you follow the on-screen instructions to make a successful installation of the Discord application. Now, launch the application and check if the error still persists.

Finally, Make Changes in System File through Command Prompt

Corrupted system files can lead to the ‘Discord error EPERM operation not permitted’ issue. To resolve this, you can open a Command Prompt window and do as mentioned below:

  1. Use the Search icon to open a Command Prompt window. Type in ‘cmd’ and right-click the Command Prompt option. Make sure that you hit the option ‘Run as administrator’.
  2. When the Command Prompt window appears, type the following command: gpupdate /force. Press the Enter key to execute the command.

It will carry out a policy update and should resolve the ‘Discord error EPERM operation not permitted’ issue. Open the Discord app, and check if it lets you in without showing any fatal JavaScript error message.