Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

nvm sucks! try n!

https://github.com/tj/n/

seriously, it's so much tidier!



Imho all these tools like nvm, rvm etc are deeply flawed and doesn't really do their jobs all that well.

Where I work we use the nix package manager. Making sure your team is using the same version of node is just a few lines of config away:

  with (import <nixpkgs> {});
  
  mkShell {
    buildInputs [ nodejs-8_x ];
  }
Pinning the whole package tree is just a few more lines away and offers you full reproducibility but I omitted it for brevity.

Another upside is that this approach is language agnostic and works for all tools packaged in the nix package repository.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: