Installing and running Node js on Synology

скачать 22 1 6 145
Добавлено 18 июня 2017, 18:32
Node.js is an open-source, cross-platform JavaScript run-time environment for executing JavaScript code server-side. Prerequisite: Web Station must be running on Synology NAS Video Guide: 1. Installing Node.js on Synology 2. Running Node.js application on Synology 3. Start the Node.js application on NAS startup Note.js: Synology NAS: WinSCP: PuTTY: My website:

Комментарии

Sanjeewa Samaranayake
The error that I am getting is unknown job test
5 февраля, 13:59 Комменитровать
Sanjeewa Samaranayake
Than you very much for this. I also cannot get the last part - start the .js when NAS start. I am running DMS 6+. As there are others having same issue much appreciate if you could help. I searched everywhere but cannot find asnwer to this. Kindly help
5 февраля, 13:57 Комменитровать
Luis Arcia
Hola, a mi me sale este error: module.js:327 throw err; ^ Error: Cannot find module '/volumen1/web/test.js' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Function.Module.runMain (module.js:441:10) at startup (node.js:140:18) at node.js:1043:3
9 декабря 2017, 09:35 Комменитровать
toshhamburg
Thank you very much, your tutorial was very helpful. Unfortunately the last step (automatically run script via init) does not work for me. The problem seems to be that I can run the script from /volume1 and it works fine. But I am not able to run the script from /etc/init. It ends up with errors in my application, it does not seem to be able to access the paths required. Error: ENOENT: no such file or directory, open 'cookies.json' at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at loadFromFile (/volume1/Thorsten/node_server/bravia-master/node_modules/tough-cookie-filestore/lib/filestore.js:147:19) at new FileCookieStore (/volume1/Thorsten/node_server/bravia-master/node_modules/tough-cookie-filestore/lib/filestore.js:14:5) Is there a missing path or missing privileges? I'm using admin in both cases. Even sudo does not solve the problem.
3 ноября 2017, 18:07 Комменитровать
Limbique
Where did you find the node.js package? Should i add an extra repository?
29 сентября 2017, 16:15 Комменитровать
Matt McLin
Thanks very much for this tutorial, exactly what I needed!
21 июля 2017, 20:32 Комменитровать

Похожие видео