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 composer install #105

Open
akgerber opened this issue Mar 8, 2021 · 0 comments
Open

Cannot composer install #105

akgerber opened this issue Mar 8, 2021 · 0 comments

Comments

@akgerber
Copy link

akgerber commented Mar 8, 2021

When attempting to execute php composer.phar install on MacOS 11.2.2 (20D80)/Homebrew PHP 8.0.3/Composer 1.10.20 installed via php composer-setup.php --version 1.10.20, I run into the following issue, which may be due to there no longer being binaries available for fsevents 1.2.9 which is deprecated, which appears to be a dependency of chodikar.

(base) ➜  vanilla git:(master) ✗ php composer.phar install
> Vanilla\Setup\ComposerHelper::preUpdate
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Nothing to install or update
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
27 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Vanilla\Setup\ComposerHelper::postUpdate
 
Installing core node_modules
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > [email protected]" has incorrect peer dependency "react@^15.0.1".
warning " > [email protected]" has incorrect peer dependency "react-dom@^15.0.1".
warning " > @storybook/[email protected]" has unmet peer dependency "react-is@^16.8.0".
warning "@storybook/addon-essentials > @storybook/[email protected]" has unmet peer dependency "react-is@^16.8.0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @mdx-js/[email protected]" has incorrect peer dependency "react@^16.13.1".
warning "@vanilla/eslint-config > [email protected]" has incorrect peer dependency "[email protected] - 6.x".
warning "@vanilla/eslint-config > [email protected]" has incorrect peer dependency "eslint@^3 || ^4 || ^5 || ^6".
warning "@vanilla/eslint-config > [email protected]" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
warning "@vanilla/eslint-config > [email protected]" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
warning " > [email protected]" has incorrect peer dependency "eslint@^4.0.0 || ^5.0.0 || ^6.0.0".
warning " > [email protected]" has incorrect peer dependency "prettier@^1.0.0".
[4/4] Building fresh packages...
warning Error running install script for optional dependency: "/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v88-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.9/fse-v1.2.9-node-v88-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.9/fse-v1.2.9-node-v88-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.9/fse-v1.2.9-node-v88-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v88 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.9/fse-v1.2.9-node-v88-darwin-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 3.8.5 found at \"/Users/akgerber/Code/miniconda3/bin/python\"
gyp info spawn /Users/akgerber/Code/miniconda3/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/akgerber/Code/vanilla-fixedgr/vanilla/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/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/akgerber/Library/Caches/node-gyp/15.11.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/akgerber/Library/Caches/node-gyp/15.11.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/akgerber/Library/Caches/node-gyp/15.11.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/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 ]
Traceback (most recent call last):
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/gyp_main.py\", line 50, in <module>
    sys.exit(gyp.script_main())
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 554, in script_main
    return main(sys.argv[1:])
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 547, in main
    return gyp_main(args)
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 532, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 2214, in GenerateOutput
    writer.Write(qualified_target, base_path, output_file, spec, configs,
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 802, in Write
    self.WriteCopies(spec['copies'], extra_outputs, part_of_all)
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 1145, in WriteCopies
    env = self.GetSortedXcodeEnv()
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 1882, in GetSortedXcodeEnv
    return gyp.xcode_emulation.GetSortedXcodeEnv(
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 1615, in GetSortedXcodeEnv
    env = _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
  File \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 1527, in _GetXcodeEnv
    if XcodeVersion() >= '0500' and not env.get('SDKROOT'):
TypeError: '>=' not supported between instances of 'tuple' and 'str'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (node:events:378:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command \"/usr/local/Cellar/node/15.11.0/bin/node\" \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v88-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v88-darwin-x64\" \"--napi_version=7\" \"--node_abi_napi=napi\" \"--napi_build_version=0\" \"--node_napi_label=node-v88\"
gyp ERR! cwd /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v15.11.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/15.11.0/bin/node /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v88-darwin-x64/fse.node --module_name=fse --module_path=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v88-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:378:20)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Darwin 20.3.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/15.11.0/bin/node\" \"/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents
node-pre-gyp ERR! node -v v15.11.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/15.11.0/bin/node /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v88-darwin-x64/fse.node --module_name=fse --module_path=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v88-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)"
info This module is OPTIONAL, you can safely ignore this error
error /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/fibers: Command failed.
Exit code: 127
Command: node build.js || nodejs build.js
Arguments:
Directory: /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/fibers
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 3.8.5 found at "/Users/akgerber/Code/miniconda3/bin/python"
gyp info spawn /Users/akgerber/Code/miniconda3/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/akgerber/Code/vanilla-fixedgr/vanilla/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/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/fibers/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/akgerber/Library/Caches/node-gyp/15.11.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/akgerber/Library/Caches/node-gyp/15.11.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/akgerber/Library/Caches/node-gyp/15.11.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/fibers',
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 make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:899:12: error: no matching member function for call to 'Set'
                        target->Set(sym_yield, yield);
                        ~~~~~~~~^~~
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3716:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3719:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/fibers.cc:903:8: error: no matching member function for call to 'Set'
                        fn->Set(sym_yield, yield);
                        ~~~~^~~
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3716:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3719:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/fibers.cc:909:12: error: no matching member function for call to 'Set'
                        target->Set(uni::NewLatin1Symbol(isolate, "Fiber"), fn);
                        ~~~~~~~~^~~
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3716:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3719:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/fibers.cc:927:27: error: no matching member function for call to 'Get'
        if (did_init || !target->Get(uni::NewLatin1Symbol(isolate, "Fiber"))->IsUndefined()) {
                         ~~~~~~~~^~~
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3763:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:3766:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/fibers.cc:206:25: error: no matching member function for call to 'Set'
                info.GetReturnValue().Set(handle);
                ~~~~~~~~~~~~~~~~~~~~~~^~~
../src/fibers.cc:838:17: note: in instantiation of function template specialization 'uni::Return<v8::Object>' requested here
                                return uni::Return(current->handle, info);
                                            ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4272:18: note: candidate function not viable: no known conversion from 'Persistent<v8::Object>' to 'bool' for 1st argument
  V8_INLINE void Set(bool value);
                 ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4273:18: note: candidate function not viable: no known conversion from 'Persistent<v8::Object>' to 'double' for 1st argument
  V8_INLINE void Set(double i);
                 ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4274:18: note: candidate function not viable: no known conversion from 'Persistent<v8::Object>' to 'int32_t' (aka 'int') for 1st argument
  V8_INLINE void Set(int32_t i);
                 ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4275:18: note: candidate function not viable: no known conversion from 'Persistent<v8::Object>' to 'uint32_t' (aka 'unsigned int') for 1st argument
  V8_INLINE void Set(uint32_t i);
                 ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4266:18: note: candidate template ignored: could not match 'Global' against 'Persistent'
  V8_INLINE void Set(const Global<S>& handle);
                 ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4268:18: note: candidate template ignored: could not match 'TracedReferenceBase' against 'Persistent'
  V8_INLINE void Set(const TracedReferenceBase<S>& handle);
                 ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4270:18: note: candidate template ignored: could not match 'Local' against 'Persistent'
  V8_INLINE void Set(const Local<S> handle);
                 ^
/Users/akgerber/Library/Caches/node-gyp/15.11.0/include/node/v8.h:4285:18: note: candidate template ignored: could not match 'S *' against 'Persistent<v8::Object>'
  V8_INLINE void Set(S* whatever);
                 ^
5 errors generated.
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:378:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/usr/local/Cellar/node/15.11.0/bin/node" "/Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/.bin/node-gyp" "rebuild" "--release"
gyp ERR! cwd /Users/akgerber/Code/vanilla-fixedgr/vanilla/node_modules/fibers
gyp ERR! node -v v15.11.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'`
Alpine users please run: `sudo apk add python make g++`
/bin/sh: nodejs: command not found
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 
Gererating Vendor Licenses for build
Installing core node_modules failed
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

1 participant