Whose Error Is It?
npm printed this
npm ERR! EACCES: permission denied, mkdir '/usr/local/lib/node_modules'
What it meansnpm tried to install a global package into a system directory owned by root, and your user lacks permission to write there.
The first thing to checkAvoid sudo; install Node with nvm so globals go under your home directory, or set npm config set prefix to a folder you own and add it to PATH.