我正在尝试安装puppeteer,每次我得到相同的错误,我已经安装了Chromium和puppeteer-core,我的节点版本是18.16.0,我的npm版本是9.7.1,任何人都有一些解决方案,请?
PS:我已经试过删除node_modules和package-lock.json了
andres@andres-VirtualBox:~/Documents/theceshop/plat-web-components$ sudo npm install
[sudo] password for andres:
npm ERR! code 1
npm ERR! path /home/andres/.local/share/Trash/files/plat-web-components/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-06-21T20_50_37_257Z-debug-0.log
andres@andres-VirtualBox:~/Documents/theceshop/plat-web-components$
1条答案
按热度按时间5jdjgkvh1#
我使用yarn代替
npm instal
,并在我的Ubuntu环境中工作