尝试运行 GeoGebra 6 Portable 时主进程中发生 JavaScript 错误

尝试运行 GeoGebra 6 Portable 时主进程中发生 JavaScript 错误

我最近下载了版本的 GeoGebra,在我提取 zip 文件的组件后,每次我尝试通过终端启动它时./GeoGebra都会出现以下错误:

 A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module './ggb-config.js'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/home/<username>/Downloads/GeoGebra-linux-x64/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/<username>/Downloads/GeoGebra-linux-x64/resources/app/main.js:19:19)
    at Object.<anonymous> (/home/<username>/Downloads/GeoGebra-linux-x64/resources/app/main.js:375:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)

答案1

这个修复对我有用:

sudo touch /usr/share/geogebra-classic/resources/app/ggb-config.js

对于 geogebra-classic_6.0.400.0-201711172340_amd64.deb 版本的相同错误,发现这里

来源 :https://help.geogebra.org/topic/geogebra-classic_6-0-400-0-201711172340_amd64-deb-is-broken

相关内容