diff --git a/docs/install.md b/docs/install.md index 348b99de..31a22acf 100644 --- a/docs/install.md +++ b/docs/install.md @@ -117,6 +117,16 @@ depending on the chosen architecture. When building your deployment package on a machine that differs from the target architecture, you will need to install either `@img/sharp-linux-x64` or `@img/sharp-linux-arm64` package. +```sh +npm install --os=linux --cpu=x64 +``` + +```sh +npm install --os=linux --cpu=arm64 +``` + +When using npm 9 or earlier, this can be achieved using the following: + ```sh npm install --force @img/sharp-linux-x64 ``` @@ -174,7 +184,7 @@ custom: - sharp packagerOptions: scripts: - - npm install --force @img/sharp-linux-x64 + - npm install --os=linux --cpu=x64 sharp ``` ## TypeScript