If I do:
npm init
npm install --save topojson
I end up with a package.json file and node_modules
directory, all looking correct. But if I then do:
topojson
I see:
-bash: topojson: command not found
Why?
If I do:
npm init
npm install --save topojson
I end up with a package.json file and node_modules
directory, all looking correct. But if I then do:
topojson
I see:
-bash: topojson: command not found
Why?
The answer to this issue turned out not to be related to npm - npm install topojson
no longer installs a command-line tool called topojson
. Confusingly, it used to, but the package has changed.
try this step
install globally using -g
1. install nodejs http://nodejs.org/
2. install npm https://npmjs.org/doc/README.html
3. run npm install -g topojson in your command prompt
4. use the command prompt to cd to the geojson file
5. run topojson -o myNewTopojsonFile.json myOldGeojsonFile.json