Skip to content

Instantly share code, notes, and snippets.

yqrashawn /
Created February 18, 2017 17:11 — forked from DanHerbert/
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.


This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.


Keybase proof

I hereby claim:

  • I am yqrashawn on github.
  • I am rashawn ( on keybase.
  • I have a public key ASBYrE004mZ6HUdPdCSkjI6uYuUX33lqQMtcVH2q2H6lDAo

To claim this, I am signing this object:

yqrashawn / OrbitControls.js
Created November 18, 2016 20:27 — forked from mrflix/OrbitControls.js
Three.OrbitControls for multiple instances on a page.Usage: controls = new THREE.OrbitControls(camera, document, renderer.domElement); Based on:
View OrbitControls.js
* @author qiao /
* @author mrdoob /
* @author alteredq /
* @author WestLangley /
* @author erich666 /
* @author mrflix /
* released under MIT License (MIT)