3 ms·
nvm for Node + use containers for database services?
by comprev 3y ago
nvm for Node + use containers for database services?
- cj 3y agonvm doesn’t stop npm modules from installing locally. many npm modules have pre/post install scripts that execute binaries and such that I’d rather not execute locally Docker for Redis/Mongo is reasonable, but npm dependencies creeping into the system is something you can’t really easily undo other than a full wipe and reinstall of the OS. Especially when certain modules require sudo to install
- comprev 3y agoDocker volumes might help with the module management too through executing npm i side a container. YMMV as performance can sometimes be an issue.
- chrisweekly 3y agotangent: fnm https://github.com/Schniz/fnm https://github.com/Schniz/fnm is faster than nvm and much cleaner in its shell integration.