Skip to content

nvm install tries to compile from source when the binary download fails #367

@jrchamp

Description

@jrchamp

Here's where nvm install is called now:

$cmd = ". $nvmDir/nvm.sh; nvm install && nvm use && echo \"NVM_BIN=\$NVM_BIN\"";

nvm.sh provides a -b flag to avoid compiling from source
https://github.com/nvm-sh/nvm/blob/44a3cdb9b8738ae02237972ec58728a568f9d552/nvm.sh#L3074

As it takes more than an hour for the compilation to happen, this is a big problem for people who have resource limitations on their GitHub Action Runners or cloud resources.

I would guess that some people might need to compile, but if GitHub Actions or local installs are the main use cases, I think having "skip source compilation" as the default is probably a good idea.

In case it is helpful, here's the runaway action workflow I am seeing today: https://github.com/ncstate-delta/moodle-mod_zoom/actions/runs/17833683411/job/50705126369?pr=677

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions