When things go wrong:
- Do what the error says.
rm -rf node_modules && npm install
(if in Ember.js -rm -rf bower_components && bower install
)rm -rf node_modules && rm -rf ~/.npm && npm install
- Reinstall node and npm.
- Format your harddrive.
- Buy a new computer.