logoalt Hacker News

graemeptoday at 9:50 AM3 repliesview on HN

> Nobody should do 'npm install' or 'pip install' on their machine.

What alternative do you suggest?

Do you mean not install outside a sandbox?


Replies

mr_mitmtoday at 1:43 PM

I've been playing around with declarative container configurations: https://github.com/AdrianVollmer/ContainerConductor (It's not ready, don't use it!)

It will always introduce friction, though.

Modern software development is simply too fast to be reviewed properly.

progxtoday at 10:47 AM

alias npm / bun / ... to run in a docker container, so npm install run automatically in the container.

show 1 reply
themafiatoday at 10:07 AM

Download source. Extract. Move files to correct node_modules folder.

If your distribution requires more than this, then it's not really a module, or combines too many non-modular components, and should be distributed differently.

The ability for npm to run scripts on any level should be removed.

Then we can go back to worrying about namespacing issues.

show 3 replies