Roots Discourse

Yarn errors new install

I can’t run yarn after a fresh Sage install. Full error output is a tad long but I guess solving the node-pre-gyp error trying to install fsevents might be a start.

node-pre-gyp tries to download fsevents from https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-node-v83-darwin-x64.tar.gz but gets a 404 response.

Any idea’s on how I could move forward with this? The project is due this week so I’m in a bit of a hurry :slight_smile:

As a reference, here is the complete console output:

warning Error running install script for optional dependency: "/Users/user/bru
egel/www/app/themes/bruegel/node_modules/fsevents: Command failed."
Exit code: 1
Command: node install
Arguments:
Directory: /Users/user/bruegel/www/app/themes/bruegel/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.10.3
node-pre-gyp info using node@14.4.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for \"/Users/user/bruegel/www/app/themes/brueg
el/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node\" (not found)

node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-node-v83-darwi
n-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-node-v83-darwi
n-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v
1.2.7-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for fsevents@1.2.7 and node@14.4.0 (node-v83 ABI, unknown) (
falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/
v1.2.7/fse-v1.2.7-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.7 and node@14.4.0 (node-v83 ABI, unkn
own) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Connection closed while downloading tarball file
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@14.4.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@14.4.0 | darwin | x64
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@14.4.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@14.4.0 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/user/bruegel/www/app/themes/bruegel/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/user/bruegel/www/app/themes/bruegel/node_modules
/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/user/bruegel/www/app/themes/bruegel/node_modules

/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/user/.node-gyp/14.4.0/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/user/.node-gyp/14.4.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/user/bruegel/www/app/themes/brueg
el/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/user/.node-gyp/14.4.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/user/bruegel/www/app/themes/br
uegel/node_modules/fsevents',
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 info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/user/bruegel/www/app/themes/bruegel/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/user/bruegel/www/app/themes/bruegel/node_modules
/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/user/bruegel/www/app/themes/bruegel/node_modules
/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/user/.node-gyp/14.4.0/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/user/.node-gyp/14.4.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/user/bruegel/www/app/themes/brueg
el/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/user/.node-gyp/14.4.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/user/bruegel/www/app/themes/br
uegel/node_modules/fsevents',
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 ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.


No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.


No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.


gyp: No Xcode or CLT version detected!
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/user/bruegel/www/app/theme
s/bruegel/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command \"/Users/user/.nvm/versions/node/v14.4.0/bin/node\" \"/Users/user/
bruegel/www/app/themes/bruegel/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-bui
ld\" \"--module=/Users/user/bruegel/www/app/themes/bruegel/node_modules/fseven
ts/lib/binding/Release/node-v83-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/user/
bruegel/www/app/themes/bruegel/node_modules/fsevents/lib/binding/Release/node-v83
-darwin-x64\" \"--napi_version=6\" \"--node_abi_napi=napi\" \"--python=/usr/bin/python\"
gyp ERR! cwd /Users/user/bruegel/www/app/themes/bruegel/node_modules/fsevents
gyp ERR! node -v v14.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/user/bruegel/www/app/theme
s/bruegel/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command \"/Users/user/.nvm/versions/node/v14.4.0/bin/node\" \"/Users/user/
bruegel/www/app/themes/bruegel/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-bui
ld\" \"--module=/Users/user/bruegel/www/app/themes/bruegel/node_modules/fseven
ts/lib/binding/Release/node-v83-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/user/
bruegel/www/app/themes/bruegel/node_modules/fsevents/lib/binding/Release/node-v83
-darwin-x64\" \"--napi_version=6\" \"--node_abi_napi=napi\" \"--python=/usr/bin/python\"
gyp ERR! cwd /Users/user/bruegel/www/app/themes/bruegel/node_modules/fsevents

gyp ERR! node -v v14.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/user/.nvm/versions/node/v14.4.0/bin/node /Users/user/
bruegel/www/app/themes/bruegel/node_modules/node-gyp/bin/node-gyp.js configur
e --fallback-to-build --module=/Users/user/bruegel/www/app/themes/bruegel/node
_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node --module_name=fse --module_path=/Users/j
k/bruegel/www/app/themes/bruegel/node_modules/fsevents/lib/binding/Release/n
ode-v83-darwin-x64 --napi_version=6 --node_abi_napi=napi --python=/usr/bin/python' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/user/bruegel/w
ww/app/themes/bruegel/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Darwin 19.5.0
node-pre-gyp ERR! command \"/Users/user/.nvm/versions/node/v14.4.0/bin/node\" \"/Users/user/
bruegel/www/app/themes/bruegel/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp
\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/user/bruegel/www/app/themes/bruegel/node_modules/
fsevents
node-pre-gyp ERR! node -v v14.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute '/Users/user/.nvm/versions/node/v14.4.0/bin/node /Users/user/b
ruegel/www/app/themes/bruegel/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=
/Users/user/bruegel/www/app/themes/bruegel/node_modules/fsevents/lib/binding/R'
[-/8] ⠈ waiting...
[-/8] ⠈ waiting...
[8/8] ⠈ node-sass

[-/8] ⠈ waiting...
error /Users/user/bruegel/www/app/themes/bruegel/node_modules/node-sass: Comma
nd failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /Users/user/bruegel/www/app/themes/bruegel/node_modules/node-sass
Output:
Building: /Users/user/.nvm/versions/node/v14.4.0/bin/node /Users/user/bruegel/ww
w/app/themes/bruegel/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflag
s= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/Users/user/.nvm/versions/node/v14.4.0/bin/node',
gyp verb cli   '/Users/user/bruegel/www/app/themes/bruegel/node_modules/node-g
yp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.4.0 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "/usr/bin/python" in the PATH
gyp verb `which` succeeded /usr/bin/python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import sys; print "2.7.16
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 14.4.0
gyp verb command install [ '14.4.0' ]
gyp verb install input version string "14.4.0"
gyp verb install installing version: 14.4.0
gyp verb install --ensure was passed, so wont 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: 14.4.0
gyp verb build dir attempting to create "build" dir: /Users/user/bruegel/www/a
pp/themes/bruegel/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /Users/user/bruegel/www/a
pp/themes/bruegel/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/user/bruegel/www/ap
p/themes/bruegel/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/user/bruegel/www/app/theme
s/bruegel/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/user/bruegel/www/app/theme
s/bruegel/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/user/bruegel/www/app/themes/bruegel/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/user/bruegel/www/app/themes/bruegel/node_modules
/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/user/bruegel/www/app/themes/bruegel/node_modules
/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/user/.node-gyp/14.4.0/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/user/.node-gyp/14.4.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/user/bruegel/www/app/themes/brueg
el/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/user/.node-gyp/14.4.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/user/bruegel/www/app/themes/br
uegel/node_modules/node-sass',

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 ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/user/bruegel/www/app/theme
s/bruegel/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command "/Users/user/.nvm/versions/node/v14.4.0/bin/node" "/Users/user/
bruegel/www/app/themes/bruegel/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=
" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/user/bruegel/www/app/themes/bruegel/node_modules/node-sass
gyp ERR! node -v v14.4.0

I’ve stumbled upon this fsevents issue suggesting to downgrade the node version. I recently upgraded it to the latest for a pure node project. So I downloaded the latest LTS version of node (v12.18.3) and switched to this version.

$ nvm install lts/*

At first most errors disappeared, except the gyp: No Xcode or CLT version detected! error (last part of my log). I had command line tools installed, so I reïnstalled them to fix this error.

$ sudo rm -rf $(xcode-select -print-path)
$ xcode-select --install

After solving the CLT error, the initial errors returned, spawning an even longer output as the one above. I still had node@10.16.3 installed so I tried switching to this version. With success!

$ nvm use 10.16.3

Am I correct to assume sage/yarn only works with node up to node dubnium (v.10.22.0) ?

The title obviously has no connection, but I think some of the issues in this thread may be related: Docker + Bedrock + Sage

Personally, I would strongly suggest abandoning node-sass and switching to sass (the Dart-based implementation). IIRC node-sass has to do a bunch of compiling on install, which is frequently what causes issues (at least for me) and sass doesn’t have to do any of that–it generally Just Works. I posted a bit about how to switch here, but it’s very straightforward: Node version requirement by Sage 9 (I believe Sage 10 de-facto uses sass because Mix has switch over to the Dart implementation.)

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.