NoCache

Preview of Run Node.js and NPM with Sudo (Fix "Command not Found" with NVM)

Run Node.js and NPM with Sudo (Fix "Command not Found" with NVM)

Cyrus Kao

While using NVM on Linux, it loads Node.js and NPM from .bashrc in the home directory of your user. However, if you execute the command with sudo like sudo npm start it will result in sudo: npm: command not found since .bashrc of root is not managed by NVM.

Preview of Install & Manage Multiple Versions of Node.js with NVM on Linux

Install & Manage Multiple Versions of Node.js with NVM on Linux

Cyrus Kao

Managing Node.js versions on Linux is no longer a pain in the ass with NVM (Node Version Manager). It can install different versions of Node.js and NPM on a single machine, switch versions anytime you wish. And the best part is NVM is just a Bash script, truly a lightweight helper for both testing and production.

Preview of How to Fix Zalgo Issue (Spamming Console) with Colors.js 1.4.1/1.4.2

How to Fix Zalgo Issue (Spamming Console) with Colors.js 1.4.1/1.4.2

Cyrus Kao

Colors.js, the open source Javascript package used by 4.3 million repositories has recently been corrupted by its owner Marak. Causing the library spamming console with a bunch of garbled characters.