Unable to get nodejs v18

Bug description: The nix package nodejs-18_x is not available.

Expected vs Current Behavior: Since nodejs-18_x is on the nix package registry, this makes me think that it is available but it isn’t.

Right now, I have to do the hacky approach of npm i node@latest and use npx node -v instead. Not ideal.

Steps to reproduce:

  1. create new nix repl
  2. type in node in the shell
  3. observe nodejs-18_x is not on the list of available packages

Bug appears at this link: https://replit.com/@Coder100/Cycle-Bot-Game-autogenerated

Screenshot(s)/Screen Recording:
image

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62

Replit Profile: https://replit.com/@Coder100

You can select nodejs-slim.out or nodejs.out to install the lastest version of Node.

2 Likes

thank you!

What’s the difference between nodejs-slim and nodejs though?

nodejs-slim (IIRC) is just the back-end part of Node.js, while nodejs is both front and back-end.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.