haystack/nb

Code not working on ubuntu?

Closed this issue · 9 comments

For some reason no matter what i do the code keeps on crashing on a ubuntu os.
I thought that maybe it was the most recent merges, but then I tested a new code snapshot on my windows machine, and it seems to work pretty well.

Is this some bug or am I missing something?

The reason for the crashing is when I run:
npm run dec
I get:
[nodemon] app crashed - waiting for file changes before starting

Hmm, weird. I tried reinstalling all libraries and even postgres but still have the same error.

Hello! As David mentioned, our servers are running on Ubuntu so there should be no problems. Can you share more details or screenshots of the errors your getting?

Right now im trying to do npm start and even that is throwing an error.

This is the error for the previous npm run dev

WhatsApp Image 2023-01-07 at 00 30 33

This is the log for the npm start

image

It's look like you're running Node v10, which doesn't support Optional chaining. Try upgrading your Node to v16 or newer
version (I updated the README to include this info). Let me know how it goes.

Wow, worked a charm thanks!!
Turns out that for some reason when you install node from the command line, v10 is what gets downloaded. Id suggest that maybe putting this in some warning or faq might help future developers too.

Edit:
Nope celebrated too early. npm run dev works, but now the issue is in npm run serve .

Screenshot from 2023-01-07 02-12-43

So update, it turns out that node v17 had a patch update that closed a security hole in the SSL provider. This results in the error above.
Link : https://stackoverflow.com/a/73027407

You can try to solve this issue by npm audit fix --force but the command can potentially break the system. I tried it and it did endup pushing another error. Now i have reverted back to node v16.19.0 and trying to run it

Yup, v16.19.0 works quite well without any errors