To describe my situation a bit:
I am developing a webapp (better to say an Onlineshop), mainly I develop on my Windows Desktop and Push the Code to my server, which runs Ubuntu Server. Its a Nodejs Webapp running on Nginx Webserver inside a Docker container (Database i'm using is Mysql, which is also running inside a Docker container on my server). I have set up git and my project as normal and started to do my thing... On my Windows machine everything went fine and as espected. But after pushing to my Server and running the file I got this error:
raffaelbaer@olympus:~$ /usr/bin/node /home/raffaelbaer/webserver/nodejs/app.js
/home/raffaelbaer/webserver/nodejs/node_modules/lru-cache/dist/cjs/index.js:359
#initializeTTLTracking() {
^
SyntaxError: Unexpected token '('
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/raffaelbaer/webserver/nodejs/node_modules/lru-
cache/dist/cjs/index-cjs.js:5:36)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
I dont know why this error is happening, I checked everything in the node_modules, but everything seems right.
Maybe its because I'm on different Plattforms? Or I have different Node Versions installed?
I didnt find anything about my Issue online and therefore, I hope to get some help here!
Best Regards Raffael