FacilMap / facilmap

FacilMap is a privacy-friendly, open-source versatile online map that combines different services based on OpenStreetMap and makes it easy to find places, plan trips and add markers, lines and routes to custom maps with live collaboration.
https://facilmap.org/
GNU Affero General Public License v3.0
321 stars 21 forks source link

ubuntu 18.04 install server error unexpected token #145

Closed boswellp closed 3 years ago

boswellp commented 3 years ago

Installing the server on ubuntu 18.04, when I run "yarn server" in /home/user/facilmap/server I get :

/home/user/facilmap/server/src/database.helpers.ts:140

const options = field.options ?? [];

SyntaxError: Unexpected token ?

I'm using mysql and I am pretty sure that all the variables in config.env are correctly set and mysql is running.

I understand that ./database is calling DatabaseHelpers from ./helpers. So this is presumably where the problem is. Any thoughts?

cdauth commented 3 years ago

For now, FacilMap requires a very recent version of Node.js to run. I'm still in the process of improving the setup and documenting it better.

The error that you are seeing indicates that you are running a version of Node.js older than version 14. I would recommend you to install the latest version of Node.js and try again.

boswellp commented 3 years ago

Candid, hello,

thank you for the response. I thought it might be the case. I'm running v11. I certainly will try again. Appreciate your efforts.

Best, Peter

On April 15, 2021 11:46 PM Candid Dauth ***@***.***> wrote:

For now, FacilMap requires a very recent version of Node.js to run. I'm still in the process of improving the setup and documenting it better.

The error that you are seeing indicates that you are running a version of Node.js older than version 14. I would recommend you to install the latest version of Node.js https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions and try again.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/FacilMap/facilmap/issues/145#issuecomment-820750766 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXQNHZHK3CMXUUHYNEX3P3TI5NERANCNFSM43AJJIAA .

..................................................................................... Peter Boswell PeterBoswell.com Business Development Mobile: +41 79 298 96 66 Email: @. @. Address: Clairvaux 13, CH-1264 St Cergue .....................................................................................

cdauth commented 3 years ago

Ok, let me know if you run into any more trouble.