You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the instructions here fails when running pnpm dev with the following error:
> pnpm dev
> @octopus/[email protected] dev /home/henrik/code/octopusdeploy/docs
> node --no-experimental-fetch ./src/themes/accelerator/utilities/img.mjs && astro dev
/home/henrik/code/octopusdeploy/docs/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/sharp.js:107
throw new Error(help.join('\n'));
^
Error: Could not load the "sharp" module using the linux-x64 runtime
Possible solutions:
- Ensure optional dependencies can be installed:
npm install --include=optional sharp
yarn add sharp --ignore-engines
- Ensure your package manager supports multi-platform installation:
See https://sharp.pixelplumbing.com/install#cross-platform
- Add platform-specific dependencies:
npm install --os=linux --cpu=x64 sharp
npm install --force @img/sharp-linux-x64
- Consult the installation documentation:
See https://sharp.pixelplumbing.com/install
at Object.<anonymous> (/home/henrik/code/octopusdeploy/docs/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/sharp.js:107:9)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (/home/henrik/code/octopusdeploy/docs/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/constructor.js:10:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
Node.js v18.15.0
ELIFECYCLE Command failed with exit code 1.
It looks like your workaround is the best way to handle this. It's because Sharp depends on some graphics APIs that differ per OS. I think we'll add a note to the README to help the next person get up and running.
Following the instructions here fails when running
pnpm dev
with the following error:node/npm/pnpm info:
Linux distribution info:
The text was updated successfully, but these errors were encountered: