3 ms·
In what way is NPM and package.json different from using pip and requirements.txt?
by cpburns2009 9y ago
In what way is NPM and package.json different from using pip and requirements.txt?
- zodiac 9y agonpm installs to a local node_modules file by default, whereas you have to set up a virtualenv or something similar to get that from pip
- masklinn 9y agoMy understanding is that's what pipenv gives you. You call pipenv install, it creates a venv if necessary and fills it. If you want to run tools within the env, you call pipenv run {command}.
- zodiac 9y agoYes, you're absolutely right, I was comparing npm specifically to pip (without any additional tools like pipenv).