Closed anh0001 closed 2 weeks ago
The error you're encountering, "Unknown system error -86", is likely due to a binary compatibility issue on macOS, especially if you're using an Apple Silicon Mac (M1/M2 chip). This can happen when trying to run arm64 binaries on x86_64 architecture without Rosetta 2 or vice versa. Here's how to address the issue:
Check Node.js Version: Ensure your Node.js version (v20.12.2) is compatible with the project requirements. If necessary, switch to a compatible version using a version manager like nvm
.
Update Puppeteer: The version of Puppeteer (1.20.0) might not be fully compatible with your system. Consider updating Puppeteer or react-snap
to a version that supports your macOS and architecture.
Use Rosetta 2 for Intel Binaries: If you're on an Apple Silicon Mac, try running your terminal under Rosetta 2 to ensure compatibility with Intel-based binaries. You can do this by duplicating your Terminal app, renaming it (e.g., Terminal Rosetta), and selecting "Open using Rosetta" in the Get Info window.
Reinstall Node Modules: Sometimes, reinstalling your node modules (npm install
or npm ci
) can resolve hidden conflicts or issues with binary installations.
Puppeteer Configuration: Verify if there are any Puppeteer-specific configurations needed for macOS, such as setting the PUPPETEER_EXECUTABLE_PATH
to a compatible Chrome or Chromium installation.
Search for Similar Issues: Check the react-snap
and Puppeteer GitHub repositories for similar issues, as others might have encountered and resolved the same problem.
By following these steps, you should be able to resolve the "Unknown system error -86" and successfully run npm run predeploy
.
To continue the conversation, mention @dosu.
Thanks it works! I installed Rosetta 2 using the command:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
This resolved the compatibility issues as you suggested. Appreciate your support!
Running
npm run predeploy
results in an error related to Puppeteer, spawned byreact-snap
. This prevents the static site generation process and shows anUnknown system error -86
related to thespawn
call inchild_process
.Steps to Reproduce
https://github.com/mldangelo/personal-site
npm install
npm run predeploy
Environment
npm ls puppeteer shows: