ekalinin/nodeenv

Freeze requirements properly

Tyrn opened this issue · 0 comments

Tyrn commented

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:

    cheerio@1.0.0-rc.10
    corepack@0.9.0

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 cheerio@1.0.0-rc.10 frozen. The runtime will be current. If this is really so, how am I supposed to freeze node and things, too?