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
When trying to install Gatsby, Sharp always fails to install with npm ERR! sharp@0.25.4 install: (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)
Libvips is already successfully installed and up to date, e.g.:
brew install libvips
Updating Homebrew...
Warning: vips 8.9.2_4 is already installed and up-to-date
I'm trying to create a new Gatsby site locally and whenever I try to either install the CLI or create a new site, it fails during the Sharp installation. I have tried deleting node_modules and reinstalling many times. I've tried reinstalling the Gatsby CLI with yarn, and have tried installing sharp with npm or clearing everything out and tried installing with yarn, but it always fails with the same error:
npm verb stack Error: sharp@0.25.4 install: `(node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
npm verb stack at EventEmitter.emit (events.js:311:20)
npm verb stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:311:20)
npm verb stack at maybeClose (internal/child_process.js:1021:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
I've tried with unsafe-perm and ignore-scripts=false. Further details are below:
You’re awesome, thank you! In the interim, I will install into a directory with no whitespace characters anywhere in the path.
Again, thank you for the incredibly swift response and action, and all your hard work!
lovell
changed the title
Sharp fails to install node install/libvips && node install/dll-copy... with Gatsby
Cannot install to filesystem path containing space character
Jul 27, 2020
When trying to install Gatsby, Sharp always fails to install with
npm ERR! sharp@0.25.4 install: (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)
Libvips is already successfully installed and up to date, e.g.:
I'm trying to create a new Gatsby site locally and whenever I try to either install the CLI or create a new site, it fails during the Sharp installation. I have tried deleting
node_modules
and reinstalling many times. I've tried reinstalling the Gatsby CLI with yarn, and have tried installing sharp with npm or clearing everything out and tried installing with yarn, but it always fails with the same error:I've tried with
unsafe-perm
andignore-scripts=false
. Further details are below:Output of
npx envinfo --binaries --system
:Full output of
npm install --unsafe-perm --ignore-scripts=false --verbose
is as follows:Would greatly appreciate any assistance or insight you can offer, thank you very much for your help!
The text was updated successfully, but these errors were encountered: