nodeenv
nodeenv copied to clipboard
Freeze requirements properly
I've got a nodeenv package in my Python project's virtual environment. I want to keep all the dependencies there. My initial actions, according to the docs:
(.venv) $ nodeenv -p
(.venv) $ npm install -g cheerio
(.venv) $ freeze node-requirements.txt
node-requirements.txt looks sensible:
[email protected]
[email protected]
The trouble starts when I try to install the project from scratch. With the Python part set up:
(.venv) $ nodeenv -r node-requirements.txt
crashes, so I have to
(.venv) nodeenv -p
* Install prebuilt node (16.10.0) ..... done.
* Appending data to /home/user/spaces/python/goodmarks/.venv/bin/activate
* Appending data to /home/user/spaces/python/goodmarks/.venv/bin/activate.fish
(.venv) $ nodeenv -r node-requirements.txt
This way I get just [email protected] frozen. The runtime will be current. If this is really so, how am I supposed to freeze node and things, too?