Node, NPM, Yarn & NVM

Now it’s time to start configuring our development environment. A good node.js is crucial as a primarily JavaScript developer, and it is vital to make sure it’s working well.

NVM

There is no better way to manage node than using NVM

# NVM…

Now it’s time to start configuring our development environment. A good node.js is crucial as a primarily JavaScript developer, and it is vital to make sure it’s working well.

NVM

There is no better way to manage node than using NVM

# NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash

Updating NVM

To update NVM to a newer version, you can use this command without losing your globals. Remember to change <version> to the version you want installed.

nvm install <version> --reinstall-packages-from=$(nvm current)
nvm use <version>
nvm alias default <version>

Yarn

I prefer to use Yarn as the package manager, but this is a personal selection.

# Yarn
curl -o- -L https://yarnpkg.com/install.sh | bash

NPMJS.com

Set the defaults value for your NPM user

npm set init.author.name "your name"
npm set init.author.email "you@example.com"
npm set init.author.url "example.com"

Then login into NPM with

npm adduser

Print Share Comment Cite Upload Translate
APA
DEV Community | Sciencx (2024-03-29T00:30:02+00:00) » Node, NPM, Yarn & NVM. Retrieved from https://www.scien.cx/2022/03/09/node-npm-yarn-nvm/.
MLA
" » Node, NPM, Yarn & NVM." DEV Community | Sciencx - Wednesday March 9, 2022, https://www.scien.cx/2022/03/09/node-npm-yarn-nvm/
HARVARD
DEV Community | Sciencx Wednesday March 9, 2022 » Node, NPM, Yarn & NVM., viewed 2024-03-29T00:30:02+00:00,<https://www.scien.cx/2022/03/09/node-npm-yarn-nvm/>
VANCOUVER
DEV Community | Sciencx - » Node, NPM, Yarn & NVM. [Internet]. [Accessed 2024-03-29T00:30:02+00:00]. Available from: https://www.scien.cx/2022/03/09/node-npm-yarn-nvm/
CHICAGO
" » Node, NPM, Yarn & NVM." DEV Community | Sciencx - Accessed 2024-03-29T00:30:02+00:00. https://www.scien.cx/2022/03/09/node-npm-yarn-nvm/
IEEE
" » Node, NPM, Yarn & NVM." DEV Community | Sciencx [Online]. Available: https://www.scien.cx/2022/03/09/node-npm-yarn-nvm/. [Accessed: 2024-03-29T00:30:02+00:00]
rf:citation
» Node, NPM, Yarn & NVM | DEV Community | Sciencx | https://www.scien.cx/2022/03/09/node-npm-yarn-nvm/ | 2024-03-29T00:30:02+00:00
https://github.com/addpipe/simple-recorderjs-demo