3

I am wondering about the difference between installing let's say PhantomJS via Homebrew and NPM. Homebrew installs the library under /usr/local/bin and NPM installs phabtomJS under ~/.npm.

Thanks!

4

1 回答 1

1

我不熟悉这个特定的库,但 Homebrew 的一般策略是在可用时依赖现有的打包系统,例如 npm、gem、pip。因此,PhantonJS 存在于 Homebrew 和 npm 中的事实表明,它要么是在此政策颁布之前添加的,要么有特定原因导致它在从 npm 中提取时不能正常工作。查看 Homebrew 包文件,它包含一个补丁,所以这可能是原因。因此,在不知道更好的情况下,我可能会先尝试 Homebrew 版本,但最终可能不会影响您使用哪个版本。

于 2013-11-10T20:31:16.640 回答