Has anyone had luck running NodeJS on their Synology? I managed to install the package for Node 20, and have enabled SSH access.
Now, I’m trying to run the Node hello world using express. When I run npm install express --save
I get the following error:
$ npm install express
npm ERR! code ENOTDIR
npm ERR! syscall mkdir
npm ERR! path /var/services/homes
npm ERR! errno -20
npm ERR! ENOTDIR: not a directory, mkdir '/var/services/homes'
But looking into /var/services
we see this:
$ ll /var/services/
total 8
drwxr-xr-x 2 root root 4096 Dec 9 20:53 .
drwxr-xr-x 15 root root 4096 Dec 9 20:53 ..
lrwxrwxrwx 1 root root 24 Jul 20 2023 homes -> /volume1/@fake_home_link
lrwxrwxrwx 1 root root 24 Jul 20 2023 pgsql -> /volume1/@database/pgsql
lrwxrwxrwx 1 root root 13 Dec 9 20:53 tmp -> /volume1/@tmp
lrwxrwxrwx+ 1 root root 12 Aug 30 2023 web -> /volume1/web
lrwxrwxrwx+ 1 root root 21 Aug 30 2023 web_packages -> /volume1/web_packages
I’m pretty puzzled by the @fake_home_link
I see.