Skip to content

Instantly share code, notes, and snippets.

@pkinney
Last active April 5, 2019 23:16
Show Gist options
  • Save pkinney/967999b892a73059dcc7 to your computer and use it in GitHub Desktop.
Save pkinney/967999b892a73059dcc7 to your computer and use it in GitHub Desktop.

Powell's 6-Step Plan to NPM Happiness

When things go wrong:

  1. Do what the error says.
  2. rm -rf node_modules && npm install (if in Ember.js - rm -rf bower_components && bower install)
  3. rm -rf node_modules && rm -rf ~/.npm && npm install
  4. Reinstall node and npm.
  5. Format your harddrive.
  6. Buy a new computer.

Powell's 6-Step Plan to Docker Bliss

When things go wrong

  1. Do what the error says.
  2. docker kill \$(docker ps -a -q) && docker rm \$(docker ps -a -q)
  3. boot2docker down && boot2docker up
  4. boot2docker destroy && boot2docker init && boot2docker up
  5. Format your harddrive.
  6. Buy a new computer.
@danielthall
Copy link

I'm confused on which step from the '5-Step Plan' I am supposed to disregard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment