asdf-vm / asdf-nodejs

Node.js plugin for asdf version manager

Home Page:https://github.com/asdf-vm/asdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

force compile not updating

M77ix opened this issue · comments

commented

While trying to fix an install problem, I did export ASDF_NODEJS_FORCE_COMPILE=true and even after I switched back to export ASDF_NODEJS_FORCE_COMPILE=false it is still force compiling from source instead of taking the precompile binaries. Any idea how to resolve this issue??

Which version are you trying to install, and which OS are you using? If no pre-compiled binaries are available it will fallback to building anyway

commented

I'm on Mac OS with an intel chip, I started downloading nodejs 18.16.0 but it sarted to force compile so I stopped it with ( control c ). After that I tried to install nodejs 16.13.0 and it is still doing force compile.

commented

I also did export ASDF_NODEJS_VERBOSE_INSTALL=true and after switching to false I'm still getting the verbose not sure why both of those command aren't working

it's because it checks for existence not value:

if [ "$install_type" = ref ] || [ "${ASDF_NODEJS_FORCE_COMPILE-}" ]; then

you need to clear that env var, not set it to "false"

@jdxcode is correct, the variable needs to be unset or at least empty for it to count as a negative. @M77ix can you check if that solves the issue?

I'm closing this a stale, if you still have the problem after setting the variable to empty please let me know