Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm error sharp: Installation error: aborted #602

Open
dythbj opened this issue May 31, 2024 · 2 comments
Open

npm error sharp: Installation error: aborted #602

dythbj opened this issue May 31, 2024 · 2 comments

Comments

@dythbj
Copy link

dythbj commented May 31, 2024

MacOS Sonoma 14.4.1, Apple M3 Pro

sudo npm install -g cordova-res --unsafe-perm=true

npm error code 1
npm error path /usr/local/lib/node_modules/cordova-res/node_modules/sharp
npm error command failed
npm error command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm error sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.11.3/libvips-8.11.3-darwin-x64.tar.br
npm error sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm error sharp: Installation error: aborted

npm error A complete log of this run can be found in...

=========================================

197 silly placeDep node_modules/cordova-res [email protected] OK for: [email protected] want: ^1.3.1
198 silly placeDep node_modules/cordova-res [email protected] OK for: [email protected] want: ^1.1.13
199 silly placeDep node_modules/cordova-res [email protected] OK for: [email protected] want: ^1.1.1
200 silly placeDep node_modules/cordova-res [email protected] OK for: [email protected] want: ^1.0.1
201 silly fetch manifest safe-buffer@~5.2.0
202 silly placeDep node_modules/cordova-res [email protected] OK for: [email protected] want: ~5.2.0
203 silly reify moves {}
204 info run [email protected] install node_modules/cordova-res/node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
205 info run [email protected] install { code: 1, signal: null }
206 verbose stack Error: command failed
206 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
206 verbose stack at ChildProcess.emit (node:events:519:28)
206 verbose stack at maybeClose (node:internal/child_process:1105:16)
206 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
207 verbose pkgid [email protected]
208 verbose cwd /Users/gaojie
209 verbose Darwin 23.4.0
210 verbose node v20.14.0
211 verbose npm v10.7.0
212 error code 1
213 error path /usr/local/lib/node_modules/cordova-res/node_modules/sharp
214 error command failed
215 error command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
216 error sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.11.3/libvips-8.11.3-darwin-x64.tar.br
216 error sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
217 error sharp: Installation error: aborted
218 verbose exit 1
219 verbose code 1
220 silly unfinished npm timer reify 1717158764513

So, Any idea?

@jeroenman
Copy link

I'm having the same problem, please fix this

@jeroenman
Copy link

running solved the problem for me:
npm install --ignore-scripts=false --foreground-scripts --verbose sharp --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants