iT邦幫忙

0

在a2 hosting的主機無法安裝Chromium

  • 分享至 

  • xImage

我使用a2 hosting,想要布屬一個專案上去,專案使用到Puppeteer ,再裝的時候出現

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@22.8.0 postinstall: `node install.mjs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@22.8.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/stelsync/.npm/_logs/2024-05-08T04_18_25_257Z-debug.log

然後我把這個node.js專案布署上去之後,執行專案出現

Failed to get web page contentError: Failed to launch the browser process! [2947426:2947455:0508/123609.295370:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2947426:2947455:0508/123609.295627:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2947426:2947455:0508/123609.295694:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2947426:2947455:0508/123609.295706:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2947426:2947426:0508/123609.318483:ERROR:chrome_browser_cloud_management_controller.cc(161)] Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build. [2947426:2947455:0508/123609.326736:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2947426:2947455:0508/123609.326761:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [2947501:1:0508/123609.331527:ERROR:platform_thread_posix.cc(157)] pthread_create: Resource temporarily unavailable (11) [2947501:1:0508/123609.331925:ERROR:platform_thread_posix.cc(157)] pthread_create: Resource temporarily unavailable (11) [2947501:1:0508/123609.331987:ERROR:platform_thread_posix.cc(157)] pthread_create: Resource temporarily unavailable (11) [0508/123609.333079:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/online: No such file or directory (2) [2947426:2947426:0508/123609.335214:ERROR:platform_thread_posix.cc(157)] pthread_create: Resource temporarily unavailable (11) [2947426:2947426:0508/123609.335338:ERROR:platform_thread_posix.cc(157)] pthread_create: Resource temporarily unavailable (11) [2947426:2947426:0508/123609.336513:ERROR:browser_main_loop.cc(278)] GLib: creating thread 'gmain': Error creating thread: Resource temporarily unavailable [0508/123609.340088:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) [0508/123609.340116:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2) TROUBLESHOOTING: https://pptr.dev/troubleshooting

以上錯誤
我查網路似乎是無法使用Chromium?
我推測應該是沒裝到Chromium,不知道對不對
那請問各位大大要如何讓a2 hosting的主機下載Chromium?
我看a2 hosting的主機系統資訊好像是用linux 系統的,哪個版本我查不到

harry731 iT邦新手 3 級 ‧ 2024-05-08 14:57:04 檢舉
先問過主機商了嗎?
先發Ticket跟主機商確認跟尋求幫助或比較有效
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答