-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how is run with node index.js possible? #9
Comments
Hello! Sorry to hear that you have problems! Do you have to build it from source? Can you not simply use the n8n npm package? In case that is not possible you can simply follow the guide here: To start it you can then also run instead of When you publish n8n on a webserver please make sure to secure it like descibed here: Hope that helps! |
Actually realize that the easier way of simply npm installing n8n did not work because it did not resolve the path to the editor-ui correctly. Fixed that bug now. So in case you do not have to build it yourself for some reason and you are happy with the currently released version you can now simply do this: # Install n8n in the folder you want to run it from
npm install n8n
# Start it
node node_modules/n8n/dist/index.js In case you still have problems simply get back to me. |
For those who come after me... To get n8n working on (Debian) Plesk / node index.js the following steps must be taken: (Versions used: Plesk 17.8.11 Update #64; Nodejs 12.4.0) In Pleskcreate new domain n8n.domain.tld Optional Activate SSLgo to hosting settings and activate your SSL certificate (wildcard in my case) OR go to letsencrypt and get a cert n8n.domain.tld if you havent alreadyInstall node.js in tools and settings -> updates and upgrades Optional use PostgreSQLInstall postgresql tools and settings -> updates and upgrades ssh to serverapt install build-essential fix permissions: find out correct permissionsto find out which permissions your other, working projects have, use fix permissions: chown (notice -R in first for permissions in both folder and subfolders)chown subscriptionuser:psacln -R /var/www/vhosts/domain.tld/n8n.domain.tld/ Back to Plesk: Go to your domain n8n.domain.tld and adjust NodeJS SettingsSet the document-root and application-root to /var/www/vhosts/domain.tld/n8n.domain.tld/node_modules/n8n/bin N8N_HOST=n8n.domain.tld nginx configIn order to receive all event callbacks in UI, you have to disable Proxymode. to updatecd /var/www/vhosts/domain.tld/ |
Jan, thanks for your quick advice. I will dive into n8n now. 2 more questions: |
Thanks a lot for taking the time to write up the Plesk guide for other people. Is really very appreciated. If it is OK with you I would use it as a base for a Plesk-Setup-Guide I would like to add to the project documentation. About your questions:
|
Closing this issue. |
is it possible to run it to develop/extend on Mac? i followed:
all successfuly, except the build, with error (remember, i'm on Mac)
|
Should also work on a mac. Not sure what the issue is right now but you are using a quite old version of node (v7.6.0). Never tested it with such an old version. I would recommend v10 or v12. Could you please try to upgrade node and then try again from the beginning? |
Oh right, thanks for your quickly response! |
No problem. |
oh, i see. btw, i decided to run: |
It installs some things like c++ compiler, make and so on: Was not aware that the inital purpose of the package was to create Debian packages. But that does actually not matter. n8n dependencies need it to build correctly (and probably the most larger projects on npm also). Actually also think Python is needed (which I thought was in build-essentials but I was wrong there). Anyway if that becomes a problem it will display you a new error message ;-) I keep my fingers crossed! |
oh, i see, thanks..
any clue on this? |
what version of python? |
That message is actually a TypeScript error from some new code I pushed 2 days ago. I did fix it now. If you pull the code again (and so the fix) it should now work. |
Wow, thanks! Working ;) |
Great to hear! You are welcome! Have fun! |
@sutidor Thx for your explination about installing n8n on plesk , but this is did'nt work for me I use Plesk Obsidian 18 and debian I got serval error in the instllation process as well it did not work Can you please explain how can install the lastetst version on plesk 18 Or if is it possible how to use it via the plesk docker manager ?? |
I dont have any idea on docker or , but I just want to install n8n on my VPS Server and point it to a subdomain managed By Plesk Panel , without loosing Plesk configuration Or My Other Domains |
Which error you got during installation? Maybe it does not have to do with Plesk |
Hi @sutidor , I will explain you what I did exactly step by step So I started from scratch by creating new VPS on Digitalocean. 1) I start by creating fresh Droplet (Debian 9 64bit). 2) I Installed New Plesk Obsidian 18.0 on the VPS. (Via SSH) 3) I added the main Domain (besthotelguides.com). 4) I Created subdomain (n8n.besthotelguides.com). 5) I Installed SSL on both Main Domain and Subdomain. 6) I Installed Nodejs from (Plesk tools->update->Add New Component). 7) I disabled PHP & FastCGI of the subdomain (n8n.besthotelguides.com.com) 8) I created New MySql Database n8n (I pass the PostgreSql Installation because I try 5 Time 9) Via SSH and folowing your documentation 9.1) 9.2) Backing to the step 9.2 executing the command
9.3)
9.4) executing the command
9.5) Fixing Permession
9.5.2) executing the command : 10) Adjusting NodeJS Setting From Plesk Panel 11 I disabled the Proxy Mode From the Apache/Nginx Configuration 12 I access to the subdomain url https://n8n.besthotelguides.com Ps: I back to check the MySQl Database and I find it empty , I dont know if environnement that thanks in advance |
@sutidor Any help please ?? |
Hey guys! I know it's been a super long time, but I just stumbled upon this thread, and I am running Steps :
|
Hey Jan,
how do I build the source and run it from node index.js? I want to deploy on plesk.
I tried a lot of things for hours but nothing seems to work. When I try to "build" via VS Code I get following error:
error TS2688: Cannot find type definition file for 'jest'.
error TS2688: Cannot find type definition file for 'node'.
Some operation I did got me the folder "dist" but even when I run that, there are errors.
Please help or give me a hint. Thanks Sven
The text was updated successfully, but these errors were encountered: