Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze requirements properly #287

Open
Tyrn opened this issue Sep 28, 2021 · 0 comments
Open

Freeze requirements properly #287

Tyrn opened this issue Sep 28, 2021 · 0 comments

Comments

@Tyrn
Copy link

Tyrn commented Sep 28, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant