Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Unable to resolve dependency tree when updating to 0.21.0 #303

Open
sk1llsh0t opened this issue Mar 30, 2021 · 6 comments
Open

Unable to resolve dependency tree when updating to 0.21.0 #303

sk1llsh0t opened this issue Mar 30, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@sk1llsh0t
Copy link

Issue Description

I'm currently on turtle-cli 0.20.7. i'm upgrading to 0.21.0. I get the error "Unable to resolve dependency tree". It doesn't update to the latest. npm output is below.

Command executed

npm -g install turtle-cli

Complete output when running turtle, including the stack trace and command used

Here is the npm output when trying to upgrade.

 npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: type-fest@0.12.0
npm ERR! node_modules/turtle-cli/node_modules/type-fest
npm ERR!   type-fest@"^0.12.0" from serialize-error@6.0.0
npm ERR!   node_modules/turtle-cli/node_modules/serialize-error
npm ERR!     serialize-error@"6.0.0" from @expo/xdl@59.1.0
npm ERR!     node_modules/turtle-cli/node_modules/@expo/xdl
npm ERR!       @expo/xdl@"59.1.0" from turtle-cli@0.21.0
npm ERR!       node_modules/turtle-cli
npm ERR!         turtle-cli@"0.21.0" from the root project
npm ERR!     serialize-error@"6.0.0" from @expo/dev-server@0.1.56
npm ERR!     node_modules/turtle-cli/node_modules/@expo/dev-server
npm ERR!       @expo/dev-server@"0.1.56" from @expo/xdl@59.1.0
npm ERR!       node_modules/turtle-cli/node_modules/@expo/xdl
npm ERR!         @expo/xdl@"59.1.0" from turtle-cli@0.21.0
npm ERR!         node_modules/turtle-cli
npm ERR!   type-fest@"^0.12.0" from @google-cloud/logging@7.3.0
npm ERR!   node_modules/turtle-cli/node_modules/@google-cloud/logging
npm ERR!     @google-cloud/logging@"^7.0.0" from @google-cloud/logging-bunyan@2.0.3
npm ERR!     node_modules/turtle-cli/node_modules/@google-cloud/logging-bunyan
npm ERR!       @google-cloud/logging-bunyan@"^2.0.3" from turtle-cli@0.21.0
npm ERR!       node_modules/turtle-cli
npm ERR!         turtle-cli@"0.21.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional type-fest@"^0.13.1" from @pmmmwh/react-refresh-webpack-plugin@0.3.3
npm ERR! node_modules/turtle-cli/node_modules/@pmmmwh/react-refresh-webpack-plugin
npm ERR!   @pmmmwh/react-refresh-webpack-plugin@"^0.3.3" from @expo/webpack-config@0.12.60
npm ERR!   node_modules/turtle-cli/node_modules/@expo/webpack-config
npm ERR!     @expo/webpack-config@"0.12.60" from @expo/xdl@59.1.0
npm ERR!     node_modules/turtle-cli/node_modules/@expo/xdl
npm ERR!       @expo/xdl@"59.1.0" from turtle-cli@0.21.0
npm ERR!       node_modules/turtle-cli
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2021-03-30T12_12_13_754Z-debug.log

Environment

 Expo CLI 4.3.2 environment info:
    System:
      OS: macOS 11.2.3
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 12.18.2 - /usr/local/bin/node
      Yarn: 1.22.4 - ~/.yarn/bin/yarn
      npm: 7.7.6 - ~/.npm-global/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.8.4 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
      Android SDK:
        Android NDK: 22.1.7171670
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.7199119
      Xcode: 12.4/12D4e - /usr/bin/xcodebuild
    npmPackages:
      expo: ^39.0.0 => 39.0.3 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: https://github.com/expo/react-native/archive/sdk-39.0.0.tar.gz => 0.63.2 
      react-native-web: ~0.13.7 => 0.13.14 
      react-navigation: ^4.4.2 => 4.4.2 
    npmGlobalPackages:
      expo-cli: 4.3.2
    Expo Workflow: managed
 
@sk1llsh0t sk1llsh0t added the bug Something isn't working label Mar 30, 2021
@sk1llsh0t
Copy link
Author

I was running npm 7.7.4. Downgrading to npm 6.14.12 fixed the issue. It looks like this is a bug in npm 7 where it can't find dependency versions.

@alex-maxime
Copy link

if you want to keep this npm vrsion , youcan use :
npm -g install turtle-cli --legacy-peer-deps

@sk1llsh0t
Copy link
Author

sk1llsh0t commented Apr 9, 2021

that solves the dependency tree issue but there are build script errors now. npm 6.14.12 works perfectly fine. Here is the output.

npm ERR! code 1
npm ERR! path /Users/e071324/.npm-global/lib/node_modules/turtle-cli/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! TOUCH Release/obj.target/libvips-cpp.stamp
npm ERR!   CXX(target) Release/obj.target/sharp/src/common.o
npm ERR! info sharp Detected globally-installed libvips v8.10.6
npm ERR! info sharp Building from source via node-gyp
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@14.16.1 | darwin | x64
npm ERR! gyp info find Python using Python version 3.9.4 found at "/usr/local/opt/python@3.9/bin/python3.9"
npm ERR! gyp info spawn /usr/local/opt/python@3.9/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/e071324/.npm-global/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/e071324/.npm-global/lib/node_modules/turtle-cli/node_modules/sharp/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/e071324/.npm-global/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/e071324/Library/Caches/node-gyp/14.16.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/e071324/Library/Caches/node-gyp/14.16.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/e071324/.npm-global/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/e071324/Library/Caches/node-gyp/14.16.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/e071324/.npm-global/lib/node_modules/turtle-cli/node_modules/sharp',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/common.cc:22:
npm ERR! In file included from /Users/e071324/Library/Caches/node-gyp/14.16.1/include/node/node.h:81:
npm ERR! /usr/local/include/signal.h:69:21: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! extern __const char *__const sys_signame[NSIG];
npm ERR!                     ^
npm ERR! /usr/local/include/signal.h:69:21: note: insert '_Nullable' if the pointer may be null
npm ERR! extern __const char *__const sys_signame[NSIG];
npm ERR!                     ^
npm ERR!                       _Nullable 
npm ERR! /usr/local/include/signal.h:69:21: note: insert '_Nonnull' if the pointer should never be null
npm ERR! extern __const char *__const sys_signame[NSIG];
npm ERR!                     ^
npm ERR!                       _Nonnull 
npm ERR! /usr/local/include/signal.h:82:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     pthread_kill(pthread_t, int);
npm ERR!                      ^
npm ERR! /usr/local/include/signal.h:82:18: note: insert '_Nullable' if the pointer may be null
npm ERR! int     pthread_kill(pthread_t, int);
npm ERR!                      ^
npm ERR!                                _Nullable 
npm ERR! /usr/local/include/signal.h:82:18: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     pthread_kill(pthread_t, int);
npm ERR!                      ^
npm ERR!                                _Nonnull 
npm ERR! /usr/local/include/signal.h:83:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     pthread_sigmask(int, const sigset_t *, sigset_t *) __DARWIN_ALIAS(pthread_sigmask);
npm ERR!                                             ^
npm ERR! /usr/local/include/signal.h:83:41: note: insert '_Nullable' if the pointer may be null
npm ERR! int     pthread_sigmask(int, const sigset_t *, sigset_t *) __DARWIN_ALIAS(pthread_sigmask);
npm ERR!                                             ^
npm ERR!                                              _Nullable
npm ERR! /usr/local/include/signal.h:83:41: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     pthread_sigmask(int, const sigset_t *, sigset_t *) __DARWIN_ALIAS(pthread_sigmask);
npm ERR!                                             ^
npm ERR!                                              _Nonnull
npm ERR! /usr/local/include/signal.h:83:53: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     pthread_sigmask(int, const sigset_t *, sigset_t *) __DARWIN_ALIAS(pthread_sigmask);
npm ERR!                                                         ^
npm ERR! /usr/local/include/signal.h:83:53: note: insert '_Nullable' if the pointer may be null
npm ERR! int     pthread_sigmask(int, const sigset_t *, sigset_t *) __DARWIN_ALIAS(pthread_sigmask);
npm ERR!                                                         ^
npm ERR!                                                          _Nullable
npm ERR! /usr/local/include/signal.h:83:53: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     pthread_sigmask(int, const sigset_t *, sigset_t *) __DARWIN_ALIAS(pthread_sigmask);
npm ERR!                                                         ^
npm ERR!                                                          _Nonnull
npm ERR! /usr/local/include/signal.h:84:43: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigaction(int, const struct sigaction * __restrict,
npm ERR!                                               ^
npm ERR! /usr/local/include/signal.h:84:43: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigaction(int, const struct sigaction * __restrict,
npm ERR!                                               ^
npm ERR!                                                 _Nullable
npm ERR! /usr/local/include/signal.h:84:43: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigaction(int, const struct sigaction * __restrict,
npm ERR!                                               ^
npm ERR!                                                 _Nonnull
npm ERR! /usr/local/include/signal.h:85:23: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR!             struct sigaction * __restrict);
npm ERR!                              ^
npm ERR! /usr/local/include/signal.h:85:23: note: insert '_Nullable' if the pointer may be null
npm ERR!             struct sigaction * __restrict);
npm ERR!                              ^
npm ERR!                                _Nullable
npm ERR! /usr/local/include/signal.h:85:23: note: insert '_Nonnull' if the pointer should never be null
npm ERR!             struct sigaction * __restrict);
npm ERR!                              ^
npm ERR!                                _Nonnull
npm ERR! /usr/local/include/signal.h:86:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigaddset(sigset_t *, int);
npm ERR!                            ^
npm ERR! /usr/local/include/signal.h:86:24: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigaddset(sigset_t *, int);
npm ERR!                            ^
npm ERR!                             _Nullable
npm ERR! /usr/local/include/signal.h:86:24: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigaddset(sigset_t *, int);
npm ERR!                            ^
npm ERR!                             _Nonnull
npm ERR! /usr/local/include/signal.h:87:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
npm ERR!                                   ^
npm ERR! /usr/local/include/signal.h:87:31: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
npm ERR!                                   ^
npm ERR!                                     _Nullable
npm ERR! /usr/local/include/signal.h:87:31: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
npm ERR!                                   ^
npm ERR!                                     _Nonnull
npm ERR! /usr/local/include/signal.h:87:53: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
npm ERR!                                                         ^
npm ERR! /usr/local/include/signal.h:87:53: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
npm ERR!                                                         ^
npm ERR!                                                           _Nullable
npm ERR! /usr/local/include/signal.h:87:53: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
npm ERR!                                                         ^
npm ERR!                                                           _Nonnull
npm ERR! /usr/local/include/signal.h:88:24: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigdelset(sigset_t *, int);
npm ERR!                            ^
npm ERR! /usr/local/include/signal.h:88:24: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigdelset(sigset_t *, int);
npm ERR!                            ^
npm ERR!                             _Nullable
npm ERR! /usr/local/include/signal.h:88:24: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigdelset(sigset_t *, int);
npm ERR!                            ^
npm ERR!                             _Nonnull
npm ERR! /usr/local/include/signal.h:89:26: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigemptyset(sigset_t *);
npm ERR!                              ^
npm ERR! /usr/local/include/signal.h:89:26: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigemptyset(sigset_t *);
npm ERR!                              ^
npm ERR!                               _Nullable
npm ERR! /usr/local/include/signal.h:89:26: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigemptyset(sigset_t *);
npm ERR!                              ^
npm ERR!                               _Nonnull
npm ERR! /usr/local/include/signal.h:90:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigfillset(sigset_t *);
npm ERR!                             ^
npm ERR! /usr/local/include/signal.h:90:25: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigfillset(sigset_t *);
npm ERR!                             ^
npm ERR!                              _Nullable
npm ERR! /usr/local/include/signal.h:90:25: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigfillset(sigset_t *);
npm ERR!                             ^
npm ERR!                              _Nonnull
npm ERR! /usr/local/include/signal.h:94:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigismember(const sigset_t *, int);
npm ERR!                                    ^
npm ERR! /usr/local/include/signal.h:94:32: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigismember(const sigset_t *, int);
npm ERR!                                    ^
npm ERR!                                     _Nullable
npm ERR! /usr/local/include/signal.h:94:32: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigismember(const sigset_t *, int);
npm ERR!                                    ^
npm ERR!                                     _Nonnull
npm ERR! /usr/local/include/signal.h:96:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigpending(sigset_t *);
npm ERR!                             ^
npm ERR! /usr/local/include/signal.h:96:25: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigpending(sigset_t *);
npm ERR!                             ^
npm ERR!                              _Nullable
npm ERR! /usr/local/include/signal.h:96:25: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigpending(sigset_t *);
npm ERR!                             ^
npm ERR!                              _Nonnull
npm ERR! /usr/local/include/signal.h:97:37: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
npm ERR!                                         ^
npm ERR! /usr/local/include/signal.h:97:37: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
npm ERR!                                         ^
npm ERR!                                           _Nullable
npm ERR! /usr/local/include/signal.h:97:37: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
npm ERR!                                         ^
npm ERR!                                           _Nonnull
npm ERR! /usr/local/include/signal.h:97:60: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
npm ERR!                                                                ^
npm ERR! /usr/local/include/signal.h:97:60: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
npm ERR!                                                                ^
npm ERR!                                                                  _Nullable
npm ERR! /usr/local/include/signal.h:97:60: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
npm ERR!                                                                ^
npm ERR!                                                                  _Nonnull
npm ERR! /usr/local/include/signal.h:100:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigsuspend(const sigset_t *) __DARWIN_ALIAS_C(sigsuspend);
npm ERR!                                   ^
npm ERR! /usr/local/include/signal.h:100:31: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigsuspend(const sigset_t *) __DARWIN_ALIAS_C(sigsuspend);
npm ERR!                                   ^
npm ERR!                                    _Nullable
npm ERR! /usr/local/include/signal.h:100:31: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigsuspend(const sigset_t *) __DARWIN_ALIAS_C(sigsuspend);
npm ERR!                                   ^
npm ERR!                                    _Nonnull
npm ERR! /usr/local/include/signal.h:101:28: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigwait(const sigset_t * __restrict, int * __restrict) __DARWIN_ALIAS_C(sigwait);
npm ERR!                                ^
npm ERR! /usr/local/include/signal.h:101:28: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigwait(const sigset_t * __restrict, int * __restrict) __DARWIN_ALIAS_C(sigwait);
npm ERR!                                ^
npm ERR!                                  _Nullable
npm ERR! /usr/local/include/signal.h:101:28: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigwait(const sigset_t * __restrict, int * __restrict) __DARWIN_ALIAS_C(sigwait);
npm ERR!                                ^
npm ERR!                                  _Nonnull
npm ERR! /usr/local/include/signal.h:101:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigwait(const sigset_t * __restrict, int * __restrict) __DARWIN_ALIAS_C(sigwait);
npm ERR!                                                  ^
npm ERR! /usr/local/include/signal.h:101:46: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigwait(const sigset_t * __restrict, int * __restrict) __DARWIN_ALIAS_C(sigwait);
npm ERR!                                                  ^
npm ERR!                                                    _Nullable
npm ERR! /usr/local/include/signal.h:101:46: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigwait(const sigset_t * __restrict, int * __restrict) __DARWIN_ALIAS_C(sigwait);
npm ERR!                                                  ^
npm ERR!                                                    _Nonnull
npm ERR! /usr/local/include/signal.h:103:39: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! void    psignal(unsigned int, const char *);
npm ERR!                                          ^
npm ERR! /usr/local/include/signal.h:103:39: note: insert '_Nullable' if the pointer may be null
npm ERR! void    psignal(unsigned int, const char *);
npm ERR!                                          ^
npm ERR!                                           _Nullable
npm ERR! /usr/local/include/signal.h:103:39: note: insert '_Nonnull' if the pointer should never be null
npm ERR! void    psignal(unsigned int, const char *);
npm ERR!                                          ^
npm ERR!                                           _Nonnull
npm ERR! /usr/local/include/signal.h:106:31: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigvec(int, struct sigvec *, struct sigvec *);
npm ERR!                                   ^
npm ERR! /usr/local/include/signal.h:106:31: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigvec(int, struct sigvec *, struct sigvec *);
npm ERR!                                   ^
npm ERR!                                    _Nullable
npm ERR! /usr/local/include/signal.h:106:31: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigvec(int, struct sigvec *, struct sigvec *);
npm ERR!                                   ^
npm ERR!                                    _Nonnull
npm ERR! /usr/local/include/signal.h:106:48: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
npm ERR! int     sigvec(int, struct sigvec *, struct sigvec *);
npm ERR!                                                    ^
npm ERR! /usr/local/include/signal.h:106:48: note: insert '_Nullable' if the pointer may be null
npm ERR! int     sigvec(int, struct sigvec *, struct sigvec *);
npm ERR!                                                    ^
npm ERR!                                                     _Nullable
npm ERR! /usr/local/include/signal.h:106:48: note: insert '_Nonnull' if the pointer should never be null
npm ERR! int     sigvec(int, struct sigvec *, struct sigvec *);
npm ERR!                                                    ^
npm ERR!                                                     _Nonnull
npm ERR! In file included from ../src/common.cc:25:
npm ERR! In file included from /usr/local/include/vips/vips8:53:
npm ERR! In file included from /usr/local/include/vips/VImage8.h:34:
npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace; did you mean 'sigwait'?
npm ERR! using ::signbit;
npm ERR!       ~~^
npm ERR! /usr/local/include/signal.h:101:5: note: 'sigwait' declared here
npm ERR! int     sigwait(const sigset_t * __restrict, int * __restrict) __DARWIN_ALIAS_C(sigwait);
npm ERR!         ^
npm ERR! In file included from ../src/common.cc:25:
npm ERR! In file included from /usr/local/include/vips/vips8:53:
npm ERR! In file included from /usr/local/include/vips/VImage8.h:34:
npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace
npm ERR! using ::fpclassify;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
npm ERR! using ::isfinite;
npm ERR!       ~~^
npm ERR! /usr/local/include/math.h:752:12: note: 'finite' declared here
npm ERR! extern int finite(double)
npm ERR!            ^
npm ERR! In file included from ../src/common.cc:25:
npm ERR! In file included from /usr/local/include/vips/vips8:53:
npm ERR! In file included from /usr/local/include/vips/VImage8.h:34:
npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:320:9: error: no member named 'isinf' in the global namespace
npm ERR! using ::isinf;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:321:9: error: no member named 'isnan' in the global namespace
npm ERR! using ::isnan;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:322:9: error: no member named 'isnormal' in the global namespace
npm ERR! using ::isnormal;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:323:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
npm ERR! using ::isgreater;
npm ERR!       ^~
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:738:29: note: '::std::greater' declared here
npm ERR! struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
npm ERR!                             ^
npm ERR! In file included from ../src/common.cc:25:
npm ERR! In file included from /usr/local/include/vips/vips8:53:
npm ERR! In file included from /usr/local/include/vips/VImage8.h:34:
npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
npm ERR! using ::isgreaterequal;
npm ERR!       ^~
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:767:29: note: '::std::greater_equal' declared here
npm ERR! struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
npm ERR!                             ^
npm ERR! In file included from ../src/common.cc:25:
npm ERR! In file included from /usr/local/include/vips/vips8:53:
npm ERR! In file included from /usr/local/include/vips/VImage8.h:34:
npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace
npm ERR! using ::isless;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace
npm ERR! using ::islessequal;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
npm ERR! using ::islessgreater;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
npm ERR! using ::isunordered;
npm ERR!       ~~^
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
npm ERR! using ::isunordered;
npm ERR!       ~~^
npm ERR! 22 warnings and 13 errors generated.
npm ERR! make: *** [Release/obj.target/sharp/src/common.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/Users/e071324/.npm-global/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Darwin 20.3.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/e071324/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/e071324/.npm-global/lib/node_modules/turtle-cli/node_modules/sharp
npm ERR! gyp ERR! node -v v14.16.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

@JsGvDev
Copy link

JsGvDev commented Jun 18, 2021

Hi, it looks like there is an issue with npm@7.x.x. To give you more details.

1970 verbose stack Error: unable to resolve dependency tree
1970 verbose stack at Arborist.[failPeerConflict] (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1210:25)
1970 verbose stack at Arborist.[placeDep] (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1313:32)
1970 verbose stack at /Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:893:46
1970 verbose stack at Array.map ()
1970 verbose stack at Arborist.[buildDepStep] (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:893:8)
1970 verbose stack at async Arborist.buildIdealTree (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:218:7)
1970 verbose stack at async Arborist.reify (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:136:5)
1970 verbose stack at async Install.install (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/lib/install.js:150:5)
1971 verbose cwd /Users/{user_folder}/.nvm/versions/node/v16.3.0/lib
1972 verbose Darwin 19.5.0
1973 verbose argv "/Users/{user_folder}/.nvm/versions/node/v16.3.0/bin/node" "/Users/{user_folder}/.nvm/versions/node/v16.3.0/bin/npm" "install" "-g" "turtle-cli"
1974 verbose node v16.3.0
1975 verbose npm v7.15.1
1976 error code ERESOLVE
1977 error ERESOLVE unable to resolve dependency tree

@sk1llsh0t
Copy link
Author

Hi, it looks like there is an issue with npm@7.x.x. To give you more details.

1970 verbose stack Error: unable to resolve dependency tree
1970 verbose stack at Arborist.[failPeerConflict] (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1210:25)
1970 verbose stack at Arborist.[placeDep] (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1313:32)
1970 verbose stack at /Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:893:46
1970 verbose stack at Array.map ()
1970 verbose stack at Arborist.[buildDepStep] (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:893:8)
1970 verbose stack at async Arborist.buildIdealTree (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:218:7)
1970 verbose stack at async Arborist.reify (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:136:5)
1970 verbose stack at async Install.install (/Users/{user_folder}/.nvm/versions/node/v16.3.0/lib/node_modules/npm/lib/install.js:150:5)
1971 verbose cwd /Users/{user_folder}/.nvm/versions/node/v16.3.0/lib
1972 verbose Darwin 19.5.0
1973 verbose argv "/Users/{user_folder}/.nvm/versions/node/v16.3.0/bin/node" "/Users/{user_folder}/.nvm/versions/node/v16.3.0/bin/npm" "install" "-g" "turtle-cli"
1974 verbose node v16.3.0
1975 verbose npm v7.15.1
1976 error code ERESOLVE
1977 error ERESOLVE unable to resolve dependency tree

stick with npm 6.14.13 as a work around. hopefully someone can fix this issue with npm 7.x.x at some point in the future so we can update to the latest version.

@nyelmer
Copy link

nyelmer commented Nov 8, 2021

The issue no longer persists on npm version 8.1.3. I think this issue can be closed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants