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

> Make sure you try the CLI! sudo npm install -g resume-cli

Regarding that: I recently reached the fed-up point with sudo or not sudo to install nodejs app and the mess it leaves behind when using sudo for just installing some local binaries.

I stumbled upon nvm[0] when installing docpad:

> The above should not require sudo (the # means sudo). If it does, we recommend reinstalling Node.js so that it doesn't. Otherwise you're likely to run into permission problems in the future. Follow the Step 1 instructions to reinstall Node.js without requiring sudo.[1]

Which led me to this:

> http://learn.bevry.me/node/install

and then this:

> https://github.com/creationix/nvm

It makes npm installs everything under $HOME and never needs to be ran with escalated privileges. `nvm install X.X` and `nvm use X.X` allows switching between node versions and installed packages.

[0] https://github.com/creationix/nvm

[1] http://docpad.org/docs/install



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: