私はDebian 8.7.1です。私はGoogle Chromeの人形を使いたい。私はscript.jsという名前のファイルを持っており、 puppeteerのドキュメントで推奨されているスクリーンショットコマンドを入力します。Google Chrome puppeteerを使用
nodejs script.js
をしかし、それは多少の誤差があります:
は、JSファイルを実行するために私が実行v8.4.0
ある-v
(node:929) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): AssertionError [ERR_ASSERTION]: Chromium revision is not downloaded. Run "npm install"
(node:929) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
nodejsをし、NPMの-vは5.3.0
です。
この問題を解決するのを手伝ってください。
ありがとうございます。私は自分のシステムにプロキシを設定しませんでした! –
@ F.M企業の代理店などに就いていますか? –
私は仮想ボックスにdebianをインストールし、ネットワークはブリッジです。私は自分のシステムにプロキシを定義していません –