Forzare ultima versione nodejs

  1. Rimuovere eventuale versione di nodejs
    yum remove nodejs
    

    2. Installare nvm

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

    3.  Poi

    => Close and reopen your terminal to start using nvm or run the following to use it now:
    
    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
    [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

    4. Verificare che nvm sia installato

    nvm --version

    5. Ora installare nodejs tramite nvm con

    nvm install node
    

    Dovrebbe impostare l’ultima versione (es. v.15.2.0 al posto della 6.17.x)

    node -v

Senza categoria

Comments are disabled.