sebasruii / flamapy-ide

https://flamapy-ide.onrender.com
GNU Lesser General Public License v3.0
2 stars 2 forks source link

bug: problem when installing in the default node version in ubuntu 22 lts #4

Closed jagalindo closed 1 month ago

jagalindo commented 1 month ago

just follow up the readme instructions and got this output

flamapyide@flamapyide:~/flamapy-ide$ node setup.mjs file:///home/flamapyide/flamapy-ide/setup.mjs:6 const pyodide = await loadPyodide(); ^^^^^

SyntaxError: Unexpected reserved word at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18) at async link (internal/modules/esm/module_job.js:42:21) flamapyide@flamapyide:~/flamapy-ide$

sebasruii commented 1 month ago

@jagalindo Thanks for letting me know. It appears that this is caused by the default node version in ubuntu. FlamapyIDE currently runs on pyodide v0.26.2 and according to its documentation, Node.js < 18 is not officially supported. I am currently using node v20.15.1 and there are no issues when running the script.

You can check your nodejs version with node -v

I would recommend updating you node version to its latest LTS version in case it is lower than 18.

sebasruii commented 1 month ago

I will update the installation guide to clarify this.

jagalindo commented 1 month ago

Having that dockerfile will certainly help

sebasruii commented 1 month ago

Happy to announce that now it is possible to deploy from a docker image! Instructions can be found on README.