如果我做:
npm init
npm install --save topojson
我最终得到了一个 package.json 文件和node_modules
目录,看起来都是正确的。但如果我这样做:
topojson
我懂了:
-bash: topojson: command not found
为什么?
事实证明,这个问题的答案与 npm 无关——npm install topojson
不再安装名为topojson
. 令人困惑的是,它曾经是,但包已经改变了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句