DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

jeann
jeann

Posted on

Update Npm and Node

Update npm and nodejs in Ubuntu.

Step 1 -> npm install -g n

Step 2 ->sudo n stable

Step 3 -> sudo npm install npm -g

Last One -> npm --version and nodejs --version look the new version

Oldest comments (0)

An Animated Guide to Node.js Event Lop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.