Skip to content

Instantly share code, notes, and snippets.

@tatticoder
Created November 23, 2021 09:58

Revisions

  1. tatticoder created this gist Nov 23, 2021.
    21 changes: 21 additions & 0 deletions npm.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    # Download nvm
    Download latest zip/tar file from [here](https://github.com/nvm-sh/nvm/releases/latest). Extract it and open the directory in a terminal.
    # Install and Check nvm
    ```
    ./install.sh
    nvm -v
    ```
    # Install and check node, npm, npx
    ```
    nvm install --lts
    node -v
    npm -v
    npx -v
    ```
    # Delete obsolete nvm files (optional)
    ```
    # Assuming executing in same directory as above
    cd ..
    rm -r nvm-0.39.0
    rm nvm-0.39.0.tar.gz
    ```