You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a node container and when I run command pnpm install I got the following error:
root@chatgpt:/home/chatgpt-tg-bot# pnpm install
Lockfile is up to date, resolution step is skipped
Packages: +470
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are cloned from the content-addressable store to the virtual store.
Content-addressable store is at: /home/chatgpt-tg-bot/.pnpm-store/v3
Virtual store is at: node_modules/.pnpm
Downloading registry.npmmirror.com/typescript/4.9.5: 11.6 MB/11.6 MB, done
Progress: resolved 470, reused 0, downloaded 470, added 470, done
node_modules/.pnpm/registry.npmmirror.com+puppeteer@19.7.1_typescript@4.9.5/node_modules/puppeteer: Running postinstall script, failed in 3.7s
.../node_modules/puppeteer postinstall$ node install.js
│ The chromium binary is not available for arm64.
│ If you are on Ubuntu, you can install with:
│ sudo apt install chromium
│ sudo apt install chromium-browser
│ ERROR: Failed to set up Chromium r1095492! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
│ Error
│ at handleArm64 (/home/chatgpt-tg-bot/node_modules/.pnpm/registry.npmmirror.com+puppeteer-core@19.7.1_typescript@4.9.5/node_modul
│ at BrowserFetcher.download (/home/chatgpt-tg-bot/node_modules/.pnpm/registry.npmmirror.com+puppeteer-core@19.7.1_typescript@4.9.
│ at async downloadBrowser (/home/chatgpt-tg-bot/node_modules/.pnpm/registry.npmmirror.com+puppeteer@19.7.1_typescript@4.9.5/node_
└─ Failed in 3.7s at /home/chatgpt-tg-bot/node_modules/.pnpm/registry.npmmirror.com+puppeteer@19.7.1_typescript@4.9.5/node_modules/puppeteer
ELIFECYCLE Command failed with exit code 1.
The api.type in local.json file has been set to unofficial.
I created a node container and when I run command pnpm install I got the following error:
root@chatgpt:/home/chatgpt-tg-bot# pnpm install
[...]
│ The chromium binary is not available for arm64.
[...]
│ ERROR: Failed to set up Chromium r1095492! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
[...]
As the error message indicates, puppeteer did not find a chromium browser binary for the arm64 platform. You can set "PUPPETEER_SKIP_DOWNLOAD" environmental variable to skip downloading the browser.
I created a node container and when I run command pnpm install I got the following error:
root@chatgpt:/home/chatgpt-tg-bot# pnpm install
[...]
│ The chromium binary is not available for arm64.
[...]
│ ERROR: Failed to set up Chromium r1095492! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
[...]
As the error message indicates, puppeteer did not find a chromium browser binary for the arm64 platform. You can set "PUPPETEER_SKIP_DOWNLOAD" environmental variable to skip downloading the browser.
yeah, I have done. But Error [ERR_MODULE_NOT_FOUND] as I mentioned above stopped me.
Activity
VectorZhao commentedon Feb 21, 2023
I created a node container and when I run command
pnpm installI got the following error:The api.type in local.json file has been set to unofficial.
VectorZhao commentedon Feb 21, 2023
RainEggplant commentedon Feb 21, 2023
As the error message indicates, puppeteer did not find a chromium browser binary for the arm64 platform. You can set "PUPPETEER_SKIP_DOWNLOAD" environmental variable to skip downloading the browser.
VectorZhao commentedon Feb 21, 2023
yeah, I have done. But Error [ERR_MODULE_NOT_FOUND] as I mentioned above stopped me.
RainEggplant commentedon Feb 21, 2023
Node.js v19 has removed the
--experimental-specifier-resolutionflag (nodejs/node#44859). I'll use a custom loader to achieve a similar function.[-]docker compose up-------.env: no such file or directory[/-][+]Support Node.js v19[/+]Support Node.js v19 by using a custom loader
RainEggplant commentedon Feb 21, 2023
Fixed by e35075a