I encountered this error when installing topojson (Debian 3.2.0-4-amd64). My steps to get things working (also discussed here ).
Install node v 0.11.10
git clone https://github.com/joyent/node.git cd node git checkout v0.11.10 ./configure && make sudo make install
Uninstall debian gyp and install via npm:
sudo apt-get remove gyp npm install -g gyp
Explicit context setting, although this was already an installed version.
npm install contextify@0.1.7
then topojson installation should work
sudo npm install -g topojson
source share