npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex code example
Example: Missing write access to /usr/local/lib/node_modules
sudo chown -R $USER /usr/local/lib/node_modules
sudo chown -R $USER /usr/local/lib/node_modules