Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
add nvm, node, and npm instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
aridyckovsky committed Oct 17, 2023
1 parent 3aa36c2 commit 5539f54
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,49 @@ A guide for working on projects with the Cognition in Collectives Lab

### GitHub

## TODO
## Setting up your computer

To work on our projects from your computer, you will need to install & configure a few primary software services and tools. Some of these are graphical user interfaces (GUIs), while others are command line interaces (CLIs).

### JavaScript environment

We use [Node Version Manager (NVM)](https://github.com/nvm-sh/nvm) to consistently manage Node.js and its versions in our projects that use JavaScript. To install, paste the following command into your Terminal application and run

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

This will install `nvm` as a CLI, which will allow you to install and use various releases of the Node.js software. The installation should also have updated some of your system files that enable use of the `nvm` CLI. To verify your installation, run

```bash
command -v nvm
```

which should output `nvm` if successful.

#### Node

Once NVM is installed, you're ready to setup your default version of Node.js for working on CiCL projects using JavaScript. Start by running

```bash
nvm install 18.18.2
nvm alias default 18.18.2
```

Then, to check the Node.js version, run

```bash
node -v
```

which should output `v18.18.2`.

#### Node Package Manager (NPM)

Check the installation of Node Package Manager (NPM) that comes with Node.js and make sure it has the correct version by running

```bash
npm -v
```

which should output `v9.8.1` or higher.

0 comments on commit 5539f54

Please sign in to comment.