I was trying to install phantomjs in order to make test
Twitter Bootstrap. After I had installed it locally i.e. npm install phantomjs
, it reported that the package was extraneous.
├─┬ 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
However, when phantomjs was installed globally i.e. npm install phantomjs -g
, it worked fine i.e. no extraneous error reported.
Questions:
- Is it because phantomjs not specified in the package.json file?
- General question: Can we have any package e.g. phantomjs installed globally and also locally?