3 ms·
What does npm do that python can’t? I’m curious.
by heyoni 7y ago
What does npm do that python can’t? I’m curious.
- Too 7y agonpm is equivalent to combining pip and virtualenv into a single tool. This gives better ergonomics when switching between projects since you never have to "activate" your environment, it's always activated when standing in the project directory.
- maksimum 7y agoThat does sound convenient. I wonder if the virtualenv aspect is relevant though, i.e. do people really deploy npm apps outside of a container/isolation layer? I imagine if you're deploying docker, you probably should be developing in docker (e.g. using PyCharm's remote interpreter/docker interpreter integration).
- Pandabob 7y agoIsn't this what Pipenv does? What has been a downer for me is that many of the cloud providers do not support pipfiles in their serverless app services (Elastic Beanstalk, App Engine etc.)
- EdwardDiego 7y agoYep, correct. Unfortunately I had quite a few issues with pipenv - mainly around its relationship with pip.
- Robthedog 7y agoI agree completely.
- Pandabob 7y agoOn second thought, at least on GCP I should be able to put the pipfiles into .gcloudignore and just update the requirements.txt file with each new commit using git hooks, build scripts or a ci/cd tool.
- deleted 7y ago[deleted]