#nixos salvaged my #legacy #nodejs environment #devlife

For some reason I can't be bother to figure anymore, my local development stack breaks on any #nodejs version greater than v14. That's a problem on my #archlinux system because the `nodejs-lts-fermium` package is long deprecated on my architecture. Enter #nixos package manager and now I can issue a one-off command to run my app regardless of the technical debt:

> $ NIXPKGS_ALLOW_INSECURE=1 nix-shell -p nodejs-slim_14 --run "./node_modules/nodemon/bin/nodemon.js --ext js,pug --watch server.js --watch app/templates"

This being #reproduciblebuilds I'm pretty sure I can later deploy the result to wherever #nixos is supported without rushing to update my whole stack beforehand.❤️

Reply to this note

Please Login to reply.

Discussion

No replies yet.