docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

Example Travis CI script fails with Sharp error in v2

Open euanmillar opened this issue 6 years ago • 1 comments

🐛 Bug Report

The TravisCI example deploy script here fails with the following error:

ERR! sharp 'darwin-x64' binaries cannot be used on the 'linux-x64' platform. Please remove the 'node_modules/sharp/vendor' directory and run 'npm install'.

The problem is related to https://github.com/lovell/sharp/issues/1459

If the TravisCI script is changed from:

- yarn && GIT_USER="${GH_NAME}" yarn deploy

To:

- npm install && GIT_USER="${GH_NAME}" yarn deploy

Then the error goes away, but it's no longer using Yarn cache. So if someone wants a quick fix, then leaving this here.

euanmillar avatar May 27 '20 22:05 euanmillar

We regularly do updates, it may be fixed already, let us know if it's not in the docusaurus beta.0

slorber avatar Jun 10 '21 10:06 slorber