error Failed at the puppeteer@3.0.4 install script.的解决方法

Posted 秋9

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error Failed at the puppeteer@3.0.4 install script.的解决方法相关的知识,希望对你有一定的参考价值。

【现象】执行npm install 报如下错误:

28393 verbose Linux 4.19.90-vhulk2107.1.0.h699.hcev1.x86_64
28394 verbose argv "/var/pdf/node-v14.17.0-linux-x64/bin/node" "/var/pdf/node-v14.17.0-linux-x64/bin/npm" "install"
28395 verbose node v14.17.0
28396 verbose npm  v6.14.13
28397 error code ELIFECYCLE
28398 error syscall spawn
28399 error file sh
28400 error errno ENOENT
28401 error puppeteer@3.0.4 install: `node install.js`
28401 error spawn ENOENT
28402 error Failed at the puppeteer@3.0.4 install script.
28402 error This is probably not a problem with npm. There is likely additional logging output above.
28403 verbose exit [ 1, true ]

【解决方法】

安装node-v16.13.1-linux-x64.tar.gz后,再执行如下命令
Step1:npm cache clean --force
Step2:删除 node_modules
Step3:删除 package-lock.json
Step4:npm install
 

以上是关于error Failed at the puppeteer@3.0.4 install script.的解决方法的主要内容,如果未能解决你的问题,请参考以下文章

Error:npm ERR! Failed at the bcrypt@5.0.0 install script.

error Failed at the puppeteer@3.0.4 install script.的解决方法

error Failed at the puppeteer@3.0.4 install script.的解决方法

react 打包项目npm start 报错 Failed at the start script.

npm ERR! Failed at the node-sass@4.13.0 postinstall script.

启动vue项目失败,报错Failed at the node-sass@4.14.1 postinstall script.