PhantomJS错误

问题描述 投票:2回答:2

error: Could not spawn [/root/AgarioBotsV3/node_modules/phantomjsprebuilt/lib/phantom\bin\phantomjs.exe ] executable. Please make sure phantomjs is installed correctly. error: Error: spawn /root/AgarioBotsV3/node_modules/phantomjs- prebuilt/lib/phantom\bin\phantomjs.exe ENOENT at exports._errnoException (util.js:1016:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19) at onErrorNT (internal/child_process.js:366:16) at _combinedTickCallback (internal/process/next_tick.js:102:11) at process._tickCallback (internal/process/next_tick.js:161:9) at Function.Module.runMain (module.js:607:11) at startup (bootstrap_node.js:158:16) at bootstrap_node.js:575:3我不知道如何解决请帮助。我使用的是linux ubuntu 16.04服务器

node.js phantomjs
2个回答
2
投票

Please make sure phantomjs is installed correctly.

如果您没有安装它,请运行npm install -g phantomjs-prebuilt


0
投票

确保你有一个.dockerignore文件..在这个行node_modules里面

© www.soinside.com 2019 - 2024. All rights reserved.