Trouble installing topojson on ubuntu

天涯浪子 提交于 2019-12-05 07:58:38

First, please check your version of node.js -- use the stable version, not the devel version. Second, invoke the npm command as superuser.

$ sudo npm install -g topojson

So far, when I switch my node.js into stable version, TopoJSON installation is running well. Thank you for your attention.

philshem

I came across 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

Remove debian gyp and install via npm:

sudo apt-get remove gyp
npm install -g gyp

Explicitly install contextify, although that was the version already installed.

npm install contextify@0.1.7

then, installing topojson should work

sudo npm install -g topojson
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!