PhantomJS error



error: Could not spawn [/root/AgarioBotsV3/node_modules/phantomjsprebuilt/lib/phantombinphantomjs.exe ] executable. Please make sure phantomjs is installed correctly. error: Error: spawn /root/AgarioBotsV3/node_modules/phantomjs- prebuilt/lib/phantombinphantomjs.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服务器

Please make sure phantomjs is installed correctly.

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

确保您有一个.dockerignore文件..内部一行node_modules

我在2021年3月提出了这个问题,并且遇到了相同的问题,使HighCharts:它在我的机器上有效,但在Docker Run上失败了。最后,解决方案是找到有效的节点版本。此Dockerfile使用最新的节点Docker图像和几乎最新的Highcharts NPM版本(始终挑选特定的NPM版本(来工作:

FROM node:15.12.0
ENV ACCEPT_HIGHCHARTS_LICENSE YES
# see available versions of highcharts at https://www.npmjs.com/package/highcharts-export-server
RUN npm install highcharts-export-server@2.0.30 -g
EXPOSE 7801
# run the container using: docker run -p 7801:7801 -t CONTAINER_TAG
CMD [ "highcharts-export-server", "--enableServer", "1" ]

相关内容

  • 没有找到相关文章

最新更新