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

Cannot install to filesystem path containing space character #2279

Closed
kmaida opened this issue Jul 4, 2020 · 3 comments
Closed

Cannot install to filesystem path containing space character #2279

kmaida opened this issue Jul 4, 2020 · 3 comments

Comments

@kmaida
Copy link

kmaida commented Jul 4, 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.:

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:

Output of npx envinfo --binaries --system:

System:
    OS: macOS 10.15.5
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 13.67 GB / 32.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.16.1 - /usr/local/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.14.5 - /usr/local/bin/npm

Full output of npm install --unsafe-perm --ignore-scripts=false --verbose is as follows:

npm info it worked if it ends with ok
npm verb cli [
npm verb cli   '/usr/local/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   'install',
npm verb cli   'sharp',
npm verb cli   '--unsafe-perm',
npm verb cli   '--ignore-scripts=false',
npm verb cli   '--verbose'
npm verb cli ]
npm info using npm@6.14.5
npm info using node@v12.16.1
npm verb npm-session d9ff6a94533ed0a3
npm http fetch GET 304 https://registry.npmjs.org/sharp 381ms (from cache)
npm timing stage:loadCurrentTree Completed in 2020ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 17ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 490ms
npm http fetch GET 304 https://registry.npmjs.org/node-addon-api 108ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/semver 272ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-get 289ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/detect-libc 310ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/prebuild-install 314ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/npmlog 337ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar 348ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/gauge 100ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/are-we-there-yet 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/console-control-strings 131ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/delegates 100ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/string-width 105ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/has-unicode 119ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wide-align 122ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/code-point-at 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/is-fullwidth-code-point 114ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/number-is-nan 102ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/napi-build-utils 106ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/expand-template 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/node-abi 126ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-fs 137ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/noop-logger 144ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/which-pm-runs 155ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/github-from-package 170ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/decompress-response 101ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-concat 110ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mimic-response 101ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mkdirp-classic 111ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-stream 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/readable-stream 108ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/chownr 103ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mkdirp 116ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minipass 125ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minizlib 130ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fs-minipass 144ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/yallist 150ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 3821ms
npm timing stage:loadIdealTree Completed in 4802ms
npm timing stage:generateActionsToTake Completed in 154ms
npm verb correctMkdir /Users/kimmaida/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /Users/kimmaida/.npm/_locks/staging-ac5e2d371824b409.lock for /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/.staging
npm timing action:extract Completed in 120ms
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm verb unbuild rmStuff undefined from /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules
npm info lifecycle undefined~postuninstall: undefined
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm verb unbuild rmStuff undefined from /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules
npm info lifecycle undefined~postuninstall: undefined
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm verb unbuild rmStuff undefined from /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules
npm info lifecycle undefined~postuninstall: undefined
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm verb unbuild rmStuff undefined from /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules
npm info lifecycle undefined~postuninstall: undefined
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm verb unbuild rmStuff undefined from /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules
npm info lifecycle undefined~postuninstall: undefined
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm verb unbuild rmStuff undefined from /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules
npm verb unbuild rmStuff in /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/gatsby-cli/node_modules
npm info lifecycle undefined~postuninstall: undefined
npm info lifecycle undefined~preuninstall: undefined
npm info lifecycle undefined~uninstall: undefined
npm verb unbuild rmStuff undefined from /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules
npm info lifecycle undefined~postuninstall: undefined
npm timing action:unbuild Completed in 4ms
npm timing action:remove Completed in 9ms
npm timing action:finalize Completed in 36ms
npm timing action:refresh-package-json Completed in 51ms
npm info lifecycle code-point-at@1.1.0~preinstall: code-point-at@1.1.0
npm info lifecycle console-control-strings@1.1.0~preinstall: console-control-strings@1.1.0
npm info lifecycle delegates@1.0.0~preinstall: delegates@1.0.0
npm info lifecycle are-we-there-yet@1.1.5~preinstall: are-we-there-yet@1.1.5
npm info lifecycle detect-libc@1.0.3~preinstall: detect-libc@1.0.3
npm info lifecycle expand-template@2.0.3~preinstall: expand-template@2.0.3
npm info lifecycle github-from-package@0.0.0~preinstall: github-from-package@0.0.0
npm info lifecycle has-unicode@2.0.1~preinstall: has-unicode@2.0.1
npm info lifecycle mkdirp-classic@0.5.3~preinstall: mkdirp-classic@0.5.3
npm info lifecycle napi-build-utils@1.0.2~preinstall: napi-build-utils@1.0.2
npm info lifecycle node-abi@2.18.0~preinstall: node-abi@2.18.0
npm info lifecycle noop-logger@0.1.1~preinstall: noop-logger@0.1.1
npm info lifecycle number-is-nan@1.0.1~preinstall: number-is-nan@1.0.1
npm info lifecycle is-fullwidth-code-point@1.0.0~preinstall: is-fullwidth-code-point@1.0.0
npm info lifecycle string-width@1.0.2~preinstall: string-width@1.0.2
npm info lifecycle mimic-response@2.1.0~preinstall: mimic-response@2.1.0
npm info lifecycle decompress-response@4.2.1~preinstall: decompress-response@4.2.1
npm info lifecycle simple-concat@1.0.0~preinstall: simple-concat@1.0.0
npm info lifecycle simple-get@3.1.0~preinstall: simple-get@3.1.0
npm info lifecycle mimic-response@3.1.0~preinstall: mimic-response@3.1.0
npm info lifecycle decompress-response@6.0.0~preinstall: decompress-response@6.0.0
npm info lifecycle readable-stream@3.6.0~preinstall: readable-stream@3.6.0
npm info lifecycle tar-stream@2.1.2~preinstall: tar-stream@2.1.2
npm info lifecycle tar-fs@2.1.0~preinstall: tar-fs@2.1.0
npm info lifecycle chownr@2.0.0~preinstall: chownr@2.0.0
npm info lifecycle mkdirp@1.0.4~preinstall: mkdirp@1.0.4
npm info lifecycle which-pm-runs@1.0.0~preinstall: which-pm-runs@1.0.0
npm info lifecycle wide-align@1.1.3~preinstall: wide-align@1.1.3
npm info lifecycle gauge@2.7.4~preinstall: gauge@2.7.4
npm info lifecycle npmlog@4.1.2~preinstall: npmlog@4.1.2
npm info lifecycle yallist@4.0.0~preinstall: yallist@4.0.0
npm info lifecycle minipass@3.1.3~preinstall: minipass@3.1.3
npm info lifecycle fs-minipass@2.1.0~preinstall: fs-minipass@2.1.0
npm info lifecycle minizlib@2.1.0~preinstall: minizlib@2.1.0
npm info lifecycle node-addon-api@3.0.0~preinstall: node-addon-api@3.0.0
npm info lifecycle prebuild-install@5.3.5~preinstall: prebuild-install@5.3.5
npm info lifecycle semver@7.3.2~preinstall: semver@7.3.2
npm info lifecycle simple-get@4.0.0~preinstall: simple-get@4.0.0
npm info lifecycle tar@6.0.2~preinstall: tar@6.0.2
npm info lifecycle sharp@0.25.4~preinstall: sharp@0.25.4
npm timing action:preinstall Completed in 3ms
npm info linkStuff code-point-at@1.1.0
npm info linkStuff console-control-strings@1.1.0
npm info linkStuff delegates@1.0.0
npm info linkStuff are-we-there-yet@1.1.5
npm info linkStuff detect-libc@1.0.3
npm verb linkBins [
npm verb linkBins   { 'detect-libc': 'bin/detect-libc.js' },
npm verb linkBins   '/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/.bin',
npm verb linkBins   false
npm verb linkBins ]
npm info linkStuff expand-template@2.0.3
npm info linkStuff github-from-package@0.0.0
npm info linkStuff has-unicode@2.0.1
npm info linkStuff mkdirp-classic@0.5.3
npm info linkStuff napi-build-utils@1.0.2
npm info linkStuff node-abi@2.18.0
npm info linkStuff noop-logger@0.1.1
npm info linkStuff number-is-nan@1.0.1
npm info linkStuff is-fullwidth-code-point@1.0.0
npm info linkStuff string-width@1.0.2
npm info linkStuff mimic-response@2.1.0
npm info linkStuff decompress-response@4.2.1
npm info linkStuff simple-concat@1.0.0
npm info linkStuff simple-get@3.1.0
npm info linkStuff mimic-response@3.1.0
npm info linkStuff decompress-response@6.0.0
npm info linkStuff readable-stream@3.6.0
npm info linkStuff tar-stream@2.1.2
npm info linkStuff tar-fs@2.1.0
npm info linkStuff chownr@2.0.0
npm info linkStuff mkdirp@1.0.4
npm verb linkBins [
npm verb linkBins   { mkdirp: 'bin/cmd.js' },
npm verb linkBins   '/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/tar/node_modules/.bin',
npm verb linkBins   false
npm verb linkBins ]
npm info linkStuff which-pm-runs@1.0.0
npm info linkStuff wide-align@1.1.3
npm info linkStuff gauge@2.7.4
npm info linkStuff npmlog@4.1.2
npm info linkStuff yallist@4.0.0
npm info linkStuff minipass@3.1.3
npm info linkStuff fs-minipass@2.1.0
npm info linkStuff minizlib@2.1.0
npm info linkStuff node-addon-api@3.0.0
npm info linkStuff prebuild-install@5.3.5
npm verb linkBins [
npm verb linkBins   { 'prebuild-install': 'bin.js' },
npm verb linkBins   '/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/.bin',
npm verb linkBins   false
npm verb linkBins ]
npm info linkStuff semver@7.3.2
npm verb linkBins [
npm verb linkBins   { semver: 'bin/semver.js' },
npm verb linkBins   '/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/node_modules/.bin',
npm verb linkBins   false
npm verb linkBins ]
npm info linkStuff simple-get@4.0.0
npm info linkStuff tar@6.0.2
npm info linkStuff sharp@0.25.4
npm timing action:build Completed in 10ms
npm info lifecycle code-point-at@1.1.0~install: code-point-at@1.1.0
npm info lifecycle console-control-strings@1.1.0~install: console-control-strings@1.1.0
npm info lifecycle delegates@1.0.0~install: delegates@1.0.0
npm info lifecycle are-we-there-yet@1.1.5~install: are-we-there-yet@1.1.5
npm info lifecycle detect-libc@1.0.3~install: detect-libc@1.0.3
npm info lifecycle expand-template@2.0.3~install: expand-template@2.0.3
npm info lifecycle github-from-package@0.0.0~install: github-from-package@0.0.0
npm info lifecycle has-unicode@2.0.1~install: has-unicode@2.0.1
npm info lifecycle mkdirp-classic@0.5.3~install: mkdirp-classic@0.5.3
npm info lifecycle napi-build-utils@1.0.2~install: napi-build-utils@1.0.2
npm info lifecycle node-abi@2.18.0~install: node-abi@2.18.0
npm info lifecycle noop-logger@0.1.1~install: noop-logger@0.1.1
npm info lifecycle number-is-nan@1.0.1~install: number-is-nan@1.0.1
npm info lifecycle is-fullwidth-code-point@1.0.0~install: is-fullwidth-code-point@1.0.0
npm info lifecycle string-width@1.0.2~install: string-width@1.0.2
npm info lifecycle mimic-response@2.1.0~install: mimic-response@2.1.0
npm info lifecycle decompress-response@4.2.1~install: decompress-response@4.2.1
npm info lifecycle simple-concat@1.0.0~install: simple-concat@1.0.0
npm info lifecycle simple-get@3.1.0~install: simple-get@3.1.0
npm info lifecycle mimic-response@3.1.0~install: mimic-response@3.1.0
npm info lifecycle decompress-response@6.0.0~install: decompress-response@6.0.0
npm info lifecycle readable-stream@3.6.0~install: readable-stream@3.6.0
npm info lifecycle tar-stream@2.1.2~install: tar-stream@2.1.2
npm info lifecycle tar-fs@2.1.0~install: tar-fs@2.1.0
npm info lifecycle chownr@2.0.0~install: chownr@2.0.0
npm info lifecycle mkdirp@1.0.4~install: mkdirp@1.0.4
npm info lifecycle which-pm-runs@1.0.0~install: which-pm-runs@1.0.0
npm info lifecycle wide-align@1.1.3~install: wide-align@1.1.3
npm info lifecycle gauge@2.7.4~install: gauge@2.7.4
npm info lifecycle npmlog@4.1.2~install: npmlog@4.1.2
npm info lifecycle yallist@4.0.0~install: yallist@4.0.0
npm info lifecycle minipass@3.1.3~install: minipass@3.1.3
npm info lifecycle fs-minipass@2.1.0~install: fs-minipass@2.1.0
npm info lifecycle minizlib@2.1.0~install: minizlib@2.1.0
npm info lifecycle node-addon-api@3.0.0~install: node-addon-api@3.0.0
npm info lifecycle prebuild-install@5.3.5~install: prebuild-install@5.3.5
npm info lifecycle semver@7.3.2~install: semver@7.3.2
npm info lifecycle simple-get@4.0.0~install: simple-get@4.0.0
npm info lifecycle tar@6.0.2~install: tar@6.0.2
npm info lifecycle sharp@0.25.4~install: sharp@0.25.4

> sharp@0.25.4 install /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)

info sharp Using cached /Users/kimmaida/.npm/_libvips/libvips-8.9.1-darwin-x64.tar.gz
sh: prebuild-install: command not found
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/usr/local/bin/node',
gyp verb cli   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild'
gyp verb cli ]
gyp info using node-gyp@5.1.0
gyp info using node@12.16.1 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python" can be used
gyp verb find Python - executing "python" to get executable path
gyp verb find Python - executable path is "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp verb find Python - executing "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" to get version
gyp verb find Python - version is "2.7.16"
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp verb get node dir no --target version specified, falling back to host node version: 12.16.1
gyp verb command install [ '12.16.1' ]
gyp verb install input version string "12.16.1"
gyp verb install installing version: 12.16.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 12.16.1
gyp verb build dir attempting to create "build" dir: /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/build
gyp verb build dir "build" dir needed to be created? /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/config.gypi
gyp verb common.gypi checking for gypi file: /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/kimmaida/Library/Caches/node-gyp/12.16.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/kimmaida/Library/Caches/node-gyp/12.16.1',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/kimmaida/Library/Caches/node-gyp/12.16.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/kimmaida/Library/Caches/node-gyp/12.16.1
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
  cc '-DNODE_GYP_MODULE_NAME=nothing' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/include/node -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/src -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/openssl/config -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/openssl/openssl/include -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/uv/include -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/zlib -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/v8/include  -Os -gdwarf-2 -mmacosx-version-min=10.10 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/nothing/../node-addon-api/nothing.o.d.raw   -c -o Release/obj.target/nothing/../node-addon-api/nothing.o ../../node-addon-api/nothing.c
  rm -f Release/nothing.a && ./gyp-mac-tool filter-libtool libtool  -static -o Release/nothing.a Release/obj.target/nothing/../node-addon-api/nothing.o
  touch Release/obj.target/libvips-cpp.stamp
  c++ '-DNODE_GYP_MODULE_NAME=sharp' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNAPI_VERSION=3' '-DBUILDING_NODE_EXTENSION' -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/include/node -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/src -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/openssl/config -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/openssl/openssl/include -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/uv/include -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/zlib -I/Users/kimmaida/Library/Caches/node-gyp/12.16.1/deps/v8/include -I/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/node-addon-api -I../vendor/include -I../vendor/include/glib-2.0 -I../vendor/lib/glib-2.0/include  -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -O3 -MMD -MF ./Release/.deps/Release/obj.target/sharp/src/common.o.d.raw   -c -o Release/obj.target/sharp/src/common.o ../src/common.cc
clang: error: no such file or directory: 'Projects'
clang: error: no such file or directory: ':'
clang: error: no such file or directory: 'Repos/kmaida-dev/web/node_modules/node-addon-api'
make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:311:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm verb lifecycle sharp@0.25.4~install: unsafe-perm in lifecycle true
npm verb lifecycle sharp@0.25.4~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp/node_modules/.bin:/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/.bin:/Users/kimmaida/.yarn/bin:/Users/kimmaida/.config/yarn/global/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
npm verb lifecycle sharp@0.25.4~install: CWD: /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/sharp
npm timing audit submit Completed in 3948ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 3957ms
npm timing audit body Completed in 14ms
npm info lifecycle sharp@0.25.4~install: Failed to exec install script
npm timing action:install Completed in 4804ms
npm verb unlock done using /Users/kimmaida/.npm/_locks/staging-ac5e2d371824b409.lock for /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/.staging
npm timing stage:rollbackFailedOptional Completed in 166ms
npm timing stage:runTopLevelLifecycles Completed in 12608ms
npm WARN enoent ENOENT: no such file or directory, open '/Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web/node_modules/gatsby-recipes/node_modules/scheduler/package.json'
npm verb enoent This is related to npm not being able to find a file.
npm verb enoent 
npm WARN @mdx-js/react@1.6.6 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN @mdx-js/runtime@1.6.6 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN @pmmmwh/react-refresh-webpack-plugin@0.3.3 requires a peer of react-refresh@^0.8.2 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/router@1.3.4 requires a peer of react@15.x || 16.x || 16.4.0-alpha.0911da3 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN create-react-context@0.3.0 requires a peer of prop-types@^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN create-react-context@0.3.0 requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN gatsby@2.23.20 requires a peer of react@^16.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN gatsby-link@2.4.11 requires a peer of react@^16.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN gatsby-react-router-scroll@3.0.10 requires a peer of react@^16.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-reconciler@0.25.1 requires a peer of react@^16.13.1 but none is installed. You must install peer dependencies yourself.
npm WARN ink@2.7.1 requires a peer of react@>=16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-reconciler@0.24.0 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ink-box@1.0.0 requires a peer of react@>=16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN ink-link@1.1.0 requires a peer of react@>=16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN ink-spinner@3.1.0 requires a peer of react@^16.8.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-dom@16.13.1 requires a peer of react@^16.13.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet@6.1.0 requires a peer of react@>=16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-hot-loader@4.12.21 requires a peer of react@^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-side-effect@2.1.0 requires a peer of react@^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN urql@1.9.8 requires a peer of react@>= 16.8.0 but none is installed. You must install peer dependencies yourself.

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)
npm verb pkgid sharp@0.25.4
npm verb cwd /Users/kimmaida/Documents/Dev Projects : Repos/kmaida-dev/web
npm verb Darwin 19.5.0
npm verb argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sharp" "--unsafe-perm" "--ignore-scripts=false" "--verbose"
npm verb node v12.16.1
npm verb npm  v6.14.5
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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)`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sharp@0.25.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 13437ms

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kimmaida/.npm/_logs/2020-07-04T04_03_24_121Z-debug.log

Would greatly appreciate any assistance or insight you can offer, thank you very much for your help!

@lovell
Copy link
Owner

lovell commented Jul 4, 2020

Thanks for the detailed report, I've created nodejs/node-addon-api#757 to fix this upstream bug.

@kmaida
Copy link
Author

kmaida commented Jul 4, 2020

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 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
lovell added a commit that referenced this issue Sep 19, 2020
Uses new include_dir property of node-addon-api
@lovell lovell added this to the v0.26.1 milestone Sep 19, 2020
@lovell
Copy link
Owner

lovell commented Sep 20, 2020

v0.26.1 is now available that takes advantage of the upstream fix in node-addon-api v3.0.2, thanks for reporting this.

@lovell lovell closed this as completed Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants