
Discord是使用最广泛的用户友好型游戏应用程序。它以其聊天功能(chat feature)和实时流媒体选项而闻名。然而,像所有应用程序一样,它也会遇到错误。一些用户报告了Discord JavaScript(Discord JavaScript error)在启动时出现错误,并且在(startup and Javascript error)Discord应用程序安装过程中在主进程中发生了Javascript 错误。在每次启动时都面临这个错误确实可能非常令人沮丧。但不要紧张!请阅读(Read)以下内容以尽早解决Discord上的此错误。

如何修复 Windows 10 启动时出现的 Discord JavaScript 错误
(How to Fix Discord JavaScript Error on Startup on Windows 10
)
在我们的研究中,我们发现以下是Discord JavaScript 启动(Discord JavaScript error on startup)错误和主进程发生 Javascript 错误的主要原因(Javascript error occurred in the main process):
- 禁用质量 Windows 音频视频服务(Quality Windows Audio Video Service)
- Discord 应用程序损坏
- 不和谐的设置
- 以管理(Administrative)权限运行Discord
下面列出的方法从基本级别排列到高级级别,以修复Windows 10台式机/笔记本电脑上的Discord JavaScript 错误。(Discord JavaScript error)
必读:(Must Read:) Discord 命令列表
方法一:关闭所有 Discord 进程(Method 1: Close All Discord Processes)
过多的Discord进程可能会损坏系统文件,导致Discord Javascript 错误(Discord Javascript error)。因此(Hence),请按照以下说明退出Discord。
1. 右键单击任务栏中的Windows(Taskbar)图标(Windows) ,(icon)然后单击任务管理器(Task Manager)选项,如下图所示。

2. 从任务管理器窗口的(Task Manager window)进程(Processes)选项卡中,搜索并选择(search and select)不和谐(Discord)任务。
3. 然后单击突出显示的结束任务(End task)选项。

4.重新启动(Restart) 系统以修复Discord javascript在启动问题上的错误。
另请阅读:(Also Read:) 修复 Discord 屏幕共享音频(Fix Discord Screen Share Audio)不起作用
方法 2:在没有管理员权限的情况下运行 Discord(Method 2: Run Discord Without Administrator Rights)
一些用户注意到,在没有管理权限的情况下登录时,该应用程序不会遇到任何错误。因此,在没有管理权限的情况下运行Discord,如下所示:
1. 右键单击 Discord 快捷方式(shortcut ),然后单击属性(Properties)。
注意:(Note: )或者导航到安装目录并右键单击(installation directory and right-click) Discord文件。

2. 在“属性”窗口(Properties window)中,切换到“兼容性(Compatibility )”选项卡。

3. 现在,取消选中以管理员身份运行此程序(Run this program as an administrator)的复选框,如下所示。

4. 最后,单击应用(Apply )和确定( OK)以保存所做的更改。
5. 现在,重新启动 Discord(relaunch Discord)以查看问题是否已修复。
方法 3:在命令提示符中更新组策略(Method 3: Update Group Policy in Command Prompt)
要在启动时修复Discord JavaScript 错误(Discord JavaScript error),您可以通过在Windows 10上的命令提示符(Command Prompt)中执行命令行来更新(command line)组策略(group policy),如下所示:
1.在Windows 搜索(Windows search)栏中(bar)键入cmd 。单击 以管理员(Run as administrator)身份运行选项以使用管理权限运行它。

2. 在这里,输入gpupdate /force 命令,如下图所示,然后按Enter键。

3.更新组策略(group policy)后,启动Discord并继续播放。
另请阅读:(Also Read:)如何在 Discord 上引用某人的话
方法四:删除 Discord AppData(Method 4: Delete Discord AppData)
临时(Temporary)和损坏的Discord文件可能会导致应用设置出现问题。此外,Discord 中不正确的帐户设置会导致(Discord lead)启动时出现Discord JavaScript 错误(Discord JavaScript error)。因此,清除所有Discord AppData以解决Windows 10上的此问题。
1.在Windows 搜索栏中(Windows Search bar )键入%appdata% ,然后单击打开(Open),如下图所示。

2. 双击 漫游( Roaming )文件夹将其打开。

3. 在这里,右键单击Discord文件夹,然后单击删除(Delete )选项,如下图所示。

4. 再次键入%localappdata% 并单击打开(Open),如图所示。

5.找到Discord(D)文件夹(Discord folder),右击后点击删除(elete)选项。

6. 最后,重启(restart) 你的电脑(your PC)。
方法五:改变质量Windows音视频体验服务(Method 5: Change Quality Windows Audio Video Experience Service)
当您将 Quality Windows Audio Video Experience 服务的启动类型(Quality Windows Audio Video Experience service)从(startup type)Manual更改(Manual)为Automatic时,您可以解决在主进程问题中发生的 JavaScript 错误。(a JavaScript error that occurred in the main process)
注意:(Note:)此方法能够解决包括Discord在内的所有其他应用程序和程序的(Discord)JavaScript错误。
以下是如何更改Quality Windows Audio Video Experience 服务(Quality Windows Audio Video Experience service)的启动类型(startup type):
1.在Windows 搜索栏中输入(Windows search bar )Run以打开Run对话框。

2.如下图所示键入 services.msc并单击(services.msc)OK。

3. 在“服务(Services)”窗口中,右键单击“质量 Windows 音频视频体验”( Quality Windows Audio Video Experience)服务。
4. 然后,单击属性(Properties)选项,如下图所示。

5. 单击 停止 (Stop )选项以停止正在运行的服务。

6. 单击 开始(Start)按钮再次运行服务。

7.使用给定的下拉菜单 将启动类型(Startup type)设置为自动。(Automatic)

8. 单击Apply > OK以保存更改。
注意:(Note:)更改启动类型时,您可能会收到以下错误消息: (error message)Windows 无法在本地计算机上启动服务。错误 1079:为此服务指定的帐户与为在同一进程中运行的其他服务指定的帐户不同。(Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the account specified for other services running in the same process.)
9. 在这种情况下,切换到质量 Windows 音频视频体验属性窗口中的(Quality Windows Audio Video Experience Properties )登录(Log on )选项卡,然后单击浏览...(Browse… )按钮,如下所示。

10. 在这里,在Enter the object name to select框中键入您的(Enter the object name to select )用户帐户(user account)的名称,然后单击Check Names按钮。

11. 完成后,单击“确定(OK )”并在出现提示时输入您的密码(Password)。
12. 现在,启动Discord ,没有任何错误。
另请阅读:(Also Read: )如何打开 Steam 控制台
方法 6:绕过防病毒软件中的 Discord(Method 6: Bypass Discord in Antivirus)
有时,由于安装的防病毒程序的限制,您可能会在(Antivirus program)Windows 10中启动时遇到Discord JavaScript 错误(Discord JavaScript error)。它可能会阻止某些程序被打开或启动,包括Discord。您可以通过将Discord添加为Antivirus的例外或暂时禁用它来解决此问题。
注意:(Note:) 在这里,我们以 Avast Free Antivirus 为例。根据您 PC 上安装的防病毒软件(Antivirus software),这些步骤可能会有所不同。
1. 启动 Avast Antivirus并单击右上角的 菜单(Menu)。

2. 单击下拉菜单中的设置 选项。(Settings )

3. 选择 General > Blocked & Allowed apps。然后,单击 允许(ALLOW APP)应用程序列表(List of allowed apps )部分 下的允许应用程序,如下所示。

4A。现在,单击与Discord选项对应的ADD以将其添加到白名单中。
4B。或者,您也可以通过选择SELECT APP PATH 选项来浏览Discord 应用程序。(Discord app)
注意:(Note:) 我们 在下图中将App Installer 描述为排除项。您必须类似地添加Discord 。

5. 最后,点击 提示中的添加 (ADD ),将 Discord 应用添加到Avast 白名单(Avast whitelist)。
注意:(Note:)如果需要,您可以选择禁用防病毒软件或暂时禁用 Windows Defender 防火墙(Defender Firewall)或卸载Avast。
方法 7:更新 Discord 应用程序(Method 7: Update Discord App)
如果您在启动时遇到 Discord JavaScript 错误(a Discord JavaScript error on startup),则可能是最近的更新与应用程序不兼容,并且已经发布了新的更新来解决该问题。下载并安装(Download)Discord的最新更新如下:
1. 按Windows 键(Windows Key)并在搜索栏中(search bar)键入%LocalAppData% ,如下所示。如图所示(Open)点击(Click)打开。

2. 找到并双击Discord文件夹将其打开。

3.通过双击运行更新应用程序并(Update )等待(Wait)该过程完成。

4. 最后,重新启动(relaunch) Discord以查看已修复的错误。
另请阅读:(Also Read:)如何修复不和谐不断冻结
方法 8:更新 Windows 操作系统(Method 8: Update Windows OS)
如果您仍然面临在主进程中发生的 JavaScript 错误,请(a JavaScript error that occurred in the main process, )按如下方式更新 Windows:
1. 同时按下Windows + I 键(keys)打开设置(Settings)应用程序。
2. 现在,如图所示选择更新和安全(Update & Security)。

3. 单击右窗格中的检查更新(Check for updates)。

4A。单击立即安装(Install now )选项。下载并安装更新后,重新启动(Restart)系统以查看Discord 错误(Discord error)已解决。

4B。如果没有可用的更新,将显示您是最新的消息。(You’re up to date)在这种情况下,请尝试下一个解决方案。

方法 9:重新安装 Discord(Method 9: Reinstall Discord)
如果这些方法都没有帮助您,请尽可能尝试重新安装软件。当您重新安装Discord(Discord)时,所有设置和配置设置都会刷新,因此您有更多机会解决您的问题。
1.通过在Windows 搜索栏中(Windows search bar)搜索来启动控制面板( Control Panel)。

2. 设置查看方式:大图标(View by: Large icons)并单击程序和功能(Programs and Features),如图所示。

3. 单击Discord并选择卸载(Uninstall )选项。

4. 出现提示时,您确定要卸载 Discord 吗?(Are you sure want to uninstall Discord? )单击是。(Yes. )
5.重启你的电脑(Restart your PC)。
6. 打开Discord 下载页面(Discord download page),然后单击Windows 下载(Download for Windows )按钮,如下图所示。

7. 导航到我的下载(My downloads )并启动DiscordSetup文件。
8. 按照屏幕上的说明(on-screen instructions)在您的 PC 上完成安装。
另请阅读:(Also Read:)如何在Discord中设置群组 DM(Group DM)
方法 10:联系 Discord 支持(Method 10: Contact Discord Support)
如果没有任何效果,请向Discord 支持团队发送(Discord support team )电子邮件(Email)。他们将分析问题并推荐针对启动时出现的Discord JavaScript 错误(Discord JavaScript error)的最佳修复方法。

推荐的:(Recommended:)
- 如何在阿联酋访问被屏蔽的网站
- 如何在 Discord 上使用一键通
- 修复 Discord 不断崩溃
- 修复 Discord 未检测到麦克风
我们希望本文解决了 Windows 10 PC(issue on Windows 10 PC)上启动问题的 Discord JavaScript 错误(Discord JavaScript error on startup) 。让我们知道哪种方法最适合您。此外,请随时在下面的评论部分(comment section)与我们联系,提出您的疑问或建议。
Fix Discord JavaScript Error on Startup
Discord is the moѕt widely utilized user-friendly application for gaming. Іt is known for its chat fеature and live streaming option as wеll. Yet, like all applications, іt аlso encounters errors. Several users have reported Discord JavаScript error on startup and Javascript error оcсurred in the main proceѕs during Discord app installation. It сould indeed be quite frustrating tо face this error on every startuр. But don’t stress! Read below to resolve this error on Discord at the earliest.

How to Fix Discord JavaScript Error on Startup on Windows 10
During our research, we found that the following are the major causes for Discord JavaScript error on startup and Javascript error occurred in the main process:
- Disabled Quality Windows Audio Video Service
- Discord app getting corrupt
- Improper Discord Settings
- Running Discord with Administrative Privileges
The methods listed below are arranged from basic to advanced level to fix Discord JavaScript error on Windows 10 desktop/laptop.
Must Read: Discord Commands List
Method 1: Close All Discord Processes
Too many Discord processes might corrupt system files leading to Discord Javascript error. Hence, exit from Discord as instructed below.
1. Right-click on the Windows icon from the Taskbar and click on the Task Manager option as depicted below.

2. From the Processes tab in the Task Manager window, search and select Discord task.
3. Then click on the End task option shown highlighted.

4. Restart the system to fix the Discord javascript error on startup issue.
Also Read: Fix Discord Screen Share Audio Not Working
Method 2: Run Discord Without Administrator Rights
Several users have noticed that the app does not face any error when logged in without administrative privileges. So, run Discord without administrative rights as follows:
1. Right-click on the Discord shortcut and click on Properties.
Note: Or navigate to the installation directory and right-click Discord file.

2. In the Properties window, switch to the Compatibility tab.

3. Now, uncheck the box marked Run this program as an administrator as shown below.

4. Finally, click on Apply and OK to save the changes made.
5. Now, relaunch Discord to see if the issue is fixed now.
Method 3: Update Group Policy in Command Prompt
To fix Discord JavaScript error on startup, you can update the group policy by executing a command line in the Command Prompt on Windows 10 as instructed below:
1. Type cmd in the Windows search bar. Click on the Run as administrator option to run it with administrative rights.

2. Here, type gpupdate /force command as depicted below and press Enter key.

3. Once the group policy is updated, launch Discord and resume playing.
Also Read: How to Quote Someone on Discord
Method 4: Delete Discord AppData
Temporary and corrupt Discord files could cause problems in app settings. Also, improper account settings in Discord lead to Discord JavaScript error on startup. Thus, clear all the Discord AppData to fix this problem on Windows 10.
1. Type %appdata% in the Windows Search bar and click Open as illustrated below.

2. Double click on the Roaming folder to open it.

3. Here, right-click on the Discord folder and click Delete option as depicted below.

4. Once again, type %localappdata% and click Open as shown.

5. Find the Discord folder and click the Delete option after right-clicking on it.

6. Finally, restart your PC.
Method 5: Change Quality Windows Audio Video Experience Service
When you change the startup type of Quality Windows Audio Video Experience service from Manual to Automatic, you can resolve a JavaScript error that occurred in the main process issue.
Note: This method is capable of resolving JavaScript errors of all other applications and programs including Discord.
Here’s how to change the startup type of Quality Windows Audio Video Experience service:
1. Type Run in the Windows search bar to open Run dialog box.

2. Type services.msc as depicted below and click OK.

3. In the Services window, right-click Quality Windows Audio Video Experience service.
4. Then, click on the Properties option as illustrated below.

5. Click on the Stop option to halt the running service.

6. Click on the Start button to run the service again.

7. Set the Startup type to Automatic using the given drop-down menu.

8. Click on Apply > OK to save the changes.
Note: You may receive the following error message while changing the startup type: Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the account specified for other services running in the same process.
9. In this case, switch to the Log on tab in the Quality Windows Audio Video Experience Properties window and click on the Browse… button as highlighted below.

10. Here, type the name of your user account in the Enter the object name to select box and click on Check Names button.

11. Once done, click on OK and type in your Password when prompted.
12. Now, launch Discord without any errors.
Also Read: How to Open Steam Console
Method 6: Bypass Discord in Antivirus
Sometimes, you may face Discord JavaScript error on startup in Windows 10 due to restrictions of the installed Antivirus program. It may prevent certain programs from being opened or launched including Discord. You can resolve this by adding Discord as an exception to Antivirus or disabling it temporarily.
Note: Here, we are using Avast Free Antivirus as an example. The steps may differ based on the Antivirus software installed on your PC.
1. Launch Avast Antivirus and click on Menu in the top right-hand corner.

2. Click on the Settings option from the drop-down menu.

3. Select General > Blocked & Allowed apps. Then, click on ALLOW APP under the List of allowed apps section, as highlighted below.

4A. Now, click on ADD corresponding to the Discord option to add it to the whitelist.
4B. Alternatively, you may also browse the Discord app by selecting the SELECT APP PATH option.
Note: We have depicted App Installer being added as an exclusion in the image below. You have to add Discord similarly.

5. Finally, click on ADD in the prompt to add the Discord app to the Avast whitelist.
Note: You can choose to disable the antivirus or disable Windows Defender Firewall temporarily or uninstall Avast if needed.
Method 7: Update Discord App
If you face a Discord JavaScript error on startup, it’s possible that the recent update is incompatible with the application, and a new update has been released to fix the problem. Download and install the latest update of Discord as follows:
1. Press the Windows Key and type %LocalAppData% in the search bar as shown below. Click on Open as shown.

2. Find and double-click on the Discord folder to open it.

3. Run the Update application by double-clicking on it and Wait for the process to complete.

4. Lastly, relaunch Discord to see the error fixed.
Also Read: How to Fix Discord Keeps Freezing
Method 8: Update Windows OS
If you still face a JavaScript error that occurred in the main process, update Windows as follows:
1. Press the Windows + I keys simultaneously to open the Settings app.
2. Now, select Update & Security as shown.

3. Click on Check for updates in the right pane.

4A. Click on the Install now option. After downloading and installing the updates, Restart your system to see the Discord error is resolved.

4B. If no updates are available, You’re up to date message will be displayed. In this case, try the next solution.

Method 9: Reinstall Discord
If none of the methods has helped you, then try to reinstall the software if possible. All the settings and configurational setup will be refreshed when you reinstall Discord, and hence there are more chances that you will attain a fix for your problem.
1. Launch Control Panel by searching for it in Windows search bar.

2. Set View by: Large icons and click Programs and Features as shown.

3. Click on Discord and select the Uninstall option.

4. When prompted, Are you sure want to uninstall Discord? click on Yes.
5. Restart your PC.
6. Open Discord download page and click on the Download for Windows button as depicted below.

7. Navigate to My downloads and launch the DiscordSetup file.
8. Follow the on-screen instructions to complete the installation on your PC.
Also Read: How to Set Up a Group DM in Discord
Method 10: Contact Discord Support
If nothing works, then drop an Email to the Discord support team . They will analyze the issue and recommend an optimal fix for the Discord JavaScript error on startup.

Recommended:
We hope this article resolved Discord JavaScript error on startup issue on Windows 10 PC. Let us know which method worked for you the best. Also, feel free to reach out to us in the comment section below with your queries or suggestions.