how to update a node module with yarn code example Example: upgrade node via yarn $ npm i -g yarn $ yarn global add yarn $ npm rm -g yarn