Closed LeeroyDing closed 3 years ago
I'm not very familiar with fish... How do I add an option for nvm install -s $version
?
For parsing options, you usually want to use the argparse
built-in.
Let's write a function, say _nvm_build_from_source
that builds Node from the source. I'll look into integrating it into nvm.
Sounds good, let me move it to a function to use later
The installation is essentially 4 steps:
./configure --prefix="$INSTALLATION_TARGET"
, in our case $nvm_data/$v
.make
with -jN
, where N=number of cores + 1. Building without -j
will work too, but is a lot slower. I haven't added the core count detection.make install
to install the compiled binary into the previously specified prefix
location.I feel this opens up too big a can of worms, sorry. Thank you for working on this PR, but I won't be adding this feature.
Fixes #127