从 npm(我通过 Homebrew 软件安装)安装 topojson 时,我得到以下信息:
npm WARN enoent ENOENT: no such file or directory, open '/Users/MuhammadShaaban/package.json'
npm WARN MuhammadShaaban No description
npm WARN MuhammadShaaban No repository field.
npm WARN MuhammadShaaban No README data
npm WARN MuhammadShaaban No license field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/7.3.0/bin/node" "/usr/local/bin/npm" "install" "topojson"
npm ERR! node v7.3.0
npm ERR! npm v3.10.10
npm ERR! path /Users/MuhammadShaaban/node_modules/topojson/node_modules/topojson-server/bin/geo2topo
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/MuhammadShaaban/node_modules/topojson/node_modules/topojson-server/bin/geo2topo'
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/MuhammadShaaban/node_modules/topojson/node_modules/topojson-server/bin/geo2topo'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/MuhammadShaaban/npm-debug.log
我已经查看了其他类似类型的问题,但找不到解决方法。关于如何纠正这个问题的任何想法?
最佳答案
试试 npm install topojson --no-bin-links
关于node.js - 无法安装 Topojson,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41411720/