Git Product home page Git Product logo

003-phase-0-wsl2-env-nodejs's Introduction

Installing Node.js on WSL2

Install Node Version Manager (NVM) on Ubuntu

Node Version Manager (NVM) is a tool that will allow you to download and install multiple versions of Node.js, one of the environments for the JavaScript programming language that we teach at Flatiron School. Installing NVM is the first step in installing Node.js on your Ubuntu operating system.

Action Item

  1. Open the "Ubuntu" application using the "Start" menu
  2. Type curl -o- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash and press <Enter>
  3. Type curl -sSL https://raw.githubusercontent.com/flatiron-school/dotfiles/master/nvm-shell-script >> ~/.bashrc and press <Enter>
  4. Close the "Ubuntu" application
  5. Reopen the "Ubuntu" application
  6. Type nvm and press <Enter>

Check Your Work

If you see a message ending with "Note: to remove, delete, or uninstall nvm", continue below.

Note: If nvm is not recognized, or you are seeing new errors when restarting the "Ubuntu" application, check out the troubleshooting steps in the Verify and Troubleshoot your WSL2 Environment Setup lesson later on in this module.

Install Node.js on Ubuntu

For our JavaScript labs and lessons, we expect that students use Node.js on Ubuntu. If Node Version Manager (NVM) has been successfully installed, you can quickly install Node.js with a couple of commands.

Action Item

  1. Open the "Ubuntu" application using the "Start" menu
  2. Type nvm install node and press <Enter>
  3. Type nvm list and press <Enter>

Check Your Work

<iframe width="560" height="315" src="https://www.youtube.com/embed/bOajXY2CMq4" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

If you see a message starting with "-> v14.13.0" (or any higher number, like "-> v14.13.10" or "-> v15.0.0"), continue to the next lesson, Installing Ruby on WSL2.

003-phase-0-wsl2-env-nodejs's People

Contributors

maxwellbenton avatar lizbur10 avatar ihollander avatar timothylevi avatar timothylevi-test avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.