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服务器
发布于 2017-06-28 10:25:36
Please make sure phantomjs is installed correctly.
如果您尚未安装,请运行npm install -g phantomjs-prebuilt
发布于 2019-03-06 23:29:59
确保您有一个.dockerignore文件..在这一行内的node_modules
发布于 2021-03-24 04:02:03
我在2021年3月遇到了这个问题,并在docker highcharts上遇到了同样的问题:它在我的机器上工作,但在docker run上失败了。最后,解决方案是找到一个有效的FROM节点版本。此Dockerfile使用最新的Node 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" ]https://stackoverflow.com/questions/44792597
复制相似问题