【发布时间】:2016-10-07 10:32:41
【问题描述】:
我试图安装 phantomjs 以便make test Twitter Bootstrap。我在本地安装后,即npm install phantomjs,它报告该包是无关的。
├─┬ phantomjs@1.9.0-3 extraneous
│ ├── adm-zip@0.2.1
...
npm ERR! extraneous: phantomjs@1.9.0-3 /Users/admin/bootstrap/node_modules/phantomjs
npm ERR! not ok code 0
但是,当 phantomjs 被全局安装时,即npm install phantomjs -g,它运行良好,即没有报告无关的错误。
问题:
- 是因为phantomjsnot specified in the package.json file吗?
- 一般问题:我们可以有任何包裹吗? phantomjs 安装在全局和本地?
【问题讨论】:
-
extraneous: not forming a necessary part of something...是我自己还是奇怪你需要的包是“无关的”?
标签: node.js twitter-bootstrap npm