简体   繁体   English

macOS Big Sur:使用 EFBIG 安装 puppeteer 时出错:文件太大,写入

[英]macOS Big Sur: error installing puppeteer with EFBIG: file too large, write

Anyone else seeing this of find a way around it???还有其他人看到这个找到解决方法吗???

➜ npm install puppeteer -g

> puppeteer@5.4.1 install /Users/afitzgerald/.nvm/versions/node/v12.19.0/lib/node_modules/puppeteer
> node install.js

Downloading Chromium r809590 - 131.1 Mb [===============     ] 74% 0.7s ERROR: Failed to set up Chromium r809590! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
[Error: EFBIG: file too large, write] {
  errno: -27,
  code: 'EFBIG',
  syscall: 'write'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@5.4.1 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@5.4.1 install 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!     /Users/afitzgerald/.npm/_logs/2020-11-13T18_32_58_543Z-debug.log

dubug log doesn't contain anything else useful... dubug 日志不包含任何其他有用的东西......

Looks like the OS is complaining that the file is too big.看起来操作系统在抱怨文件太大。 If there is a limit on Maximum size of core files created or Maximum size of files created by the shell you should try changing it with ulimit -c 2097152 or ulimit -f 2097152 which will set the limit to 2 GB (2097152 kB = 2 GB).如果Maximum size of core files createdMaximum size of files created by the shell您应该尝试使用ulimit -c 2097152ulimit -f 2097152更改它,这会将限制设置为 2 GB (2097152 kB = 2 GB ). Puppeteer downloads are usually under 1 GB. Puppeteer 下载通常低于 1 GB。

Limits exist to make sure files don't get too big you can see these limits by running in the terminal.存在限制以确保文件不会变得太大,您可以通过在终端中运行来查看这些限制。 Look at the output below.看下面的output。

$ ulimit -a
Maximum size of core files created                           (kB, -c) 0
Maximum size of a process’s data segment                     (kB, -d) unlimited
Maximum size of files created by the shell                   (kB, -f) unlimited
Maximum size that may be locked into memory                  (kB, -l) unlimited
Maximum resident set size                                    (kB, -m) unlimited
Maximum number of open file descriptors                          (-n) 1048576
Maximum stack size                                           (kB, -s) 8192
Maximum amount of cpu time in seconds                   (seconds, -t) unlimited
Maximum number of processes available to a single user           (-u) 5568
Maximum amount of virtual memory available to the shell      (kB, -v) unlimited

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 macOS 11.1 Big Sur 上的 Puppeteer 和 Headless Chrome Crawler - Puppeteer and Headless Chrome Crawler on macOS 11.1 Big Sur npm 在 MacOS big sur 上安装 ws 失败 - npm install ws fails on MacOS big sur 安装 puppeteer 导致“文件已存在”错误 - Installing puppeteer results in “file already exists” error heroku 错误:编译的 slug 大小:对于 Puppeteer 来说太大了 - heroku Error: compiled slug size: is too large with Puppeteer 在 Apple M1 (Big Sur) 上使用 node-gyp 安装本机 Node.js 插件时出错 - Error installing native Node.js add-on with node-gyp on Apple M1 (Big Sur) Mongoose NodeJS macOS Big Sur MongooseServerSelectionError:连接 ECONNREFUSED::1:27017 - Mongoose NodeJS macOS Big Sur MongooseServerSelectionError: connect ECONNREFUSED ::1:27017 无法在 macOS Big Sur 11.4 上安装 Gulp-sass - Cannot install Gulp-sass on macOS Big Sur 11.4 macOS Big Sur:当我运行 `npm install` 时,在 `node-gyp rebuild` 步骤中出现错误:`gyp:未检测到 Xcode 或 CLT 版本!` - macOS Big Sur: When I run `npm install`, I get an error during the step `node-gyp rebuild`: `gyp: No Xcode or CLT version detected!` 由于 macOS Big Sur 升级,无法再安装 npm 软件包 - Can't install npm packages anymore due to macOS Big Sur upgrade nvm install node 无法在 macOS Big Sur M1 芯片上安装 - nvm install node fails to install on macOS Big Sur M1 Chip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM