If your npm is broken

Reinstall npm:

curl -L https://www.npmjs.org/install.sh | sh

If you're on Windows and you have a broken installation, the easiest thing to do is to reinstall node from the official installer (remember this note).

© npm, Inc. and Contributors
Licensed under the npm License.
npm is a trademark of npm, Inc.