<commit_before>## Install node.js and npm
```
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install nodejs npm
```

## Upgrade node.js and npm
* Note this automatically pulls the version you want from the internet
```
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo n 4.2.1 # if you want to use a specific version
sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node 
```<commit_msg>Update nodeSetupLinux.md<commit_after>## Install node.js and npm
```
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install nodejs npm
```

## Upgrade node.js and npm
* Note this automatically pulls the version you want from the internet
```
sudo npm cache clean -f
sudo npm install -g n
sudo n stable # sudo n 4.2.1 - if you want to use a specific version
sudo npm update -g
sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node # for ubuntu
# Check new versions
sudo node -v
sudo npm -v
```
{'fraction_non_alphanumeric': 0.10564853556485355, 'fraction_numerical': 0.006276150627615063, 'mean_word_length': 3.6009615384615383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6313826', 'n_tokens_mistral': 343, 'n_tokens_neox': 296, 'n_words': 136}