如何找出哪些依赖项驱动phantomjs-prebuilt的安装?

时间:2019-11-14 03:53:53

标签: npm phantomjs

在Macbook pro上为项目运行npm install时,我看到了此输出

> phantomjs-prebuilt@2.1.16 install /Users/antkong/dev/my_project/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-macosx.zip
Saving to /var/folders/d_/y12s1m0j49vff0hf_b1lzgdr0000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip
Receiving...
  [========================================] 100%
Received 16746K total.
Extracting zip contents
Removing /Users/antkong/my_project/webview/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /var/folders/d_/y12s1m0j49vff0hf_b1lzgdr0000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip-extract-1573703277110/phantomjs-2.1.1-macosx -> /Users/antkong/dev/my_project/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /Users/antkong/dev/my_project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs

我的第一个问题是:我无法确定哪个依赖项会触发此版本phantomjs的下载。

这是我的package.json的依赖项列表

"devDependencies": {
    "autoprefixer": "^6.3.6",
    "coffee-script": "^1.10.0",
    "fs-extra": "~0.19.0",
    "grunt": "^0.4.5",
    "grunt-bump": "0.0.13",
    "grunt-coffeelint": "0.0.15",
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-coffee": "1.0.0",
    "grunt-contrib-copy": "~0.5.0",
    "grunt-contrib-less": "~0.11.0",
    "grunt-contrib-requirejs": "~0.4.0",
    "grunt-contrib-watch": "~0.6.1",
    "grunt-mkdir": "~0.1.2",
    "grunt-mocha": "1.0.2",
    "grunt-modernizr": "^0.5.2",
    "grunt-postcss": "^0.8.0",
    "grunt-shell": "^1.1.2",
    "grunt-webfont": "^1.6.0",
    "husky": "^0.14.3",
    "lint-staged": "^7.1.2",
    "prettier": "1.13.4",
    "underscore": "~1.7.0"
  },

引起我悲伤的真正问题是:当我尝试在使用Linux docker的CI服务上运行相同的npm install时,npm下载了phantomjs 2.1.16版本。我想知道是哪个依赖性导致了这种差异。

0 个答案:

没有答案
相关问题