Skip to content
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

Cannot run on Node v22 #2

Open
lalliexperience opened this issue Aug 24, 2024 · 3 comments
Open

Cannot run on Node v22 #2

lalliexperience opened this issue Aug 24, 2024 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@lalliexperience
Copy link

I installed Node version 22 but i'm getting an error when launching:
node:internal/modules/cjs/loader:1251
throw err;
^

@Slord6
Copy link
Owner

Slord6 commented Aug 24, 2024

Hi! It's been a while since I've run this myself so I'm not 100% sure. I would suspect 16 or 18 are more likely to work as it was definitely prior to 22 release.

If you get it running please let me know the version and I'll add it to the README

@Slord6 Slord6 added the question Further information is requested label Aug 24, 2024
@lalliexperience
Copy link
Author

I got this working on Node 16, definitely not on 22. I’m not sure about version 18.

I used these commands:

NODE_MAJOR=16

echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

sudo apt update

sudo apt install nodejs

#running “node index.js 1234” gives an error at this point so I went to run npm but it didn’t exist:

sudo apt-get install npm

npm i

#Test command ’node index.js’ 1234 works now

I havn't actually linked it up to IFTTT or anything yet, but I'm hoping to. Thank you!

@Slord6
Copy link
Owner

Slord6 commented Aug 24, 2024

Perfect, thanks. I'll update the docs when I get chance

@Slord6 Slord6 changed the title What version of Node should I be installing on a Pi? Cannot run on Node v22 Aug 24, 2024
@Slord6 Slord6 added bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers and removed question Further information is requested labels Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants