Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
905 views
in Technique[技术] by (71.8m points)

node.js - [email protected] install: `node install.js` on M1

I've been trying to work on a code I wrote a couple of months back ran into the following error,

> [email protected] install /Users/xyz/Documents/xyz.github.io/node_modules/puppeteer
> node install.js

The chromium binary is not available for arm64: 
If you are on Ubuntu, you can install with: 

 apt-get install chromium-browser

/Users/xyz/Documents/xyz.github.io/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
            throw new Error();

Error
    at /Users/xyz/Documents/xyz.github.io/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
    at FSReqCallback.oncomplete (node:fs:194:21)

Chromium arm64 is installed for some reason puppeteer doesn't seem to recognize it. Any workaround for the above?

Solutions I've tried :

https://github.com/puppeteer/puppeteer/issues/6622

question from:https://stackoverflow.com/questions/65928783/puppeteer5-5-0-install-node-install-js-on-m1

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...