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

python is not configured in npm #3089

Open
unaccepted opened this issue Nov 6, 2024 · 5 comments
Open

python is not configured in npm #3089

unaccepted opened this issue Nov 6, 2024 · 5 comments

Comments

@unaccepted
Copy link

unaccepted commented Nov 6, 2024

The original issue is posted below which is related to setup of a node repo. While doing the setup I am facing issue with node-gyp and python.
citrineos/citrineos#45

@cclauss Can you please help here. I followed the thread #2664
But no luck. let me know if you need any other info to guide me better.

Below is the configuration of my system:

image image image image

I am getting this error while hitting the command on readme : "docker-compose -f ./docker-compose.yml up -d"

@cclauss
Copy link
Contributor

cclauss commented Nov 6, 2024

Please paste in text, not pictures. Pictures are not searchable or quotable but text is.

Your problem here is not related to Python. Python 3.11.2 was found at /usr/bin/python3 which works.

  • You can upgrade Python but it is not required -- brew install python

The problem is related to the FetchError.

@unaccepted
Copy link
Author

unaccepted commented Nov 6, 2024

Thanks @cclauss for the response, please find the reponse of the last command (docker-compose -f ./docker-compose.yml up -d) in text:

99.49 npm verbose reify failed optional dependency /usr/local/apps/citrineos/node_modules/bufferutil
99.60 npm info run [email protected] install { code: 1, signal: null }
99.60 npm verbose reify failed optional dependency /usr/local/apps/citrineos/node_modules/utf-8-validate
100.9 npm verbose stack Error: command failed
100.9 npm verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
100.9 npm verbose stack at ChildProcess.emit (node:events:517:28)
100.9 npm verbose stack at maybeClose (node:internal/child_process:1098:16)
100.9 npm verbose stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
100.9 npm verbose pkgid [email protected]
100.9 npm verbose cwd /usr/local/apps/citrineos
100.9 npm verbose Linux 5.15.49-linuxkit-pr
100.9 npm verbose node v18.20.4
100.9 npm verbose npm v10.7.0
100.9 npm error code 1
100.9 npm error path /usr/local/apps/citrineos/node_modules/deasync
100.9 npm error command failed
100.9 npm error command sh -c node ./build.js
100.9 npm error gyp info it worked if it ends with ok
100.9 npm error gyp verb cli [
100.9 npm error gyp verb cli '/usr/local/bin/node',
100.9 npm error gyp verb cli '/usr/local/apps/citrineos/node_modules/.bin/node-gyp',
100.9 npm error gyp verb cli 'rebuild'
100.9 npm error gyp verb cli ]
100.9 npm error gyp info using [email protected]
100.9 npm error gyp info using [email protected] | linux | arm64
100.9 npm error gyp verb clean removing "build" directory
100.9 npm error gyp verb find Python Python is not set from command line or npm configuration
100.9 npm error gyp verb find Python Python is not set from environment variable PYTHON
100.9 npm error gyp verb find Python checking if "python3" can be used
100.9 npm error gyp verb find Python - executing "python3" to get executable path
100.9 npm error gyp verb find Python - executable path is "/usr/bin/python3"
100.9 npm error gyp verb find Python - executing "/usr/bin/python3" to get version
100.9 npm error gyp verb find Python - version is "3.11.2"
100.9 npm error gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
100.9 npm error gyp verb get node dir no --target version specified, falling back to host node version: 18.20.4
100.9 npm error gyp verb install input version string "18.20.4"
100.9 npm error gyp verb install installing version: 18.20.4
100.9 npm error gyp verb install --ensure was passed, so won't reinstall if already installed
100.9 npm error gyp verb install version not already installed, continuing with install 18.20.4
100.9 npm error gyp verb ensuring devDir is created /root/.cache/node-gyp/18.20.4
100.9 npm error gyp verb created devDir /root/.cache
100.9 npm error gyp http GET https://nodejs.org/download/release/v18.20.4/node-v18.20.4-headers.tar.gz
100.9 npm error gyp http fetch GET https://nodejs.org/download/release/v18.20.4/node-v18.20.4-headers.tar.gz attempt 1 failed with UNABLE_TO_GET_ISSUER_CERT_LOCALLY
100.9 npm error gyp WARN install got an error, rolling back install
100.9 npm error gyp verb remove using node-gyp dir: /root/.cache/node-gyp
100.9 npm error gyp verb remove removing target version: 18.20.4
100.9 npm error gyp verb remove removing development files for version: 18.20.4
100.9 npm error gyp ERR! configure error
100.9 npm error gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v18.20.4/node-v18.20.4-headers.tar.gz failed, reason: unable to get local issuer certificate
100.9 npm error gyp ERR! stack at ClientRequest. (/usr/local/apps/citrineos/node_modules/minipass-fetch/lib/index.js:130:14)
100.9 npm error gyp ERR! stack at ClientRequest.emit (node:events:517:28)
100.9 npm error gyp ERR! stack at _destroy (node:_http_client:882:13)
100.9 npm error gyp ERR! stack at onSocketNT (node:_http_client:902:5)
100.9 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
100.9 npm error gyp ERR! System Linux 5.15.49-linuxkit-pr
100.9 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/apps/citrineos/node_modules/.bin/node-gyp" "rebuild"
100.9 npm error gyp ERR! cwd /usr/local/apps/citrineos/node_modules/deasync
100.9 npm error gyp ERR! node -v v18.20.4
100.9 npm error gyp ERR! node-gyp -v v10.2.0
100.9 npm error gyp ERR! not ok
100.9 npm error Build failed
100.9 npm verbose exit 1
100.9 npm verbose code 1
100.9
100.9 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-11-06T13_20_43_352Z-debug-0.log
101.0 npm notice
101.0 npm notice New minor version of npm available! 10.7.0 -> 10.9.0
101.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
101.0 npm notice To update run: npm install -g [email protected]
101.0 npm notice

failed to solve: process "/bin/sh -c npm run install-all && npm run build" did not complete successfully: exit code: 1

I have also created binding.gyp file with below content:

{ "targets": [ { "target_name": "binding", "sources": [ " /usr/local/bin/node" ] } ] }

Also note that I have Python 3.9.6 and not Python 3.11.2, I am assuming node-gyp might not be able to find with 'python' as I have python3. Do I need to tag python with python3 with some alias, I tried this also taking reference from some post, but still no luck.

amanjha@192 server % python3 --version
Python 3.9.6
amanjha@192 server % python --version
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.
amanjha@192 server % which -a python
/usr/local/bin/python
amanjha@192 server % which -a python3
/usr/bin/python3
/opt/homebrew/bin/python3
/opt/homebrew/bin/python3
amanjha@192 server %

Earlier I tried below commands, but now I have reverted.

open ~/.zshrc

alias python3="/opt/homebrew/bin/python3"
export PYTHON="/opt/homebrew/bin/python3"

@cclauss
Copy link
Contributor

cclauss commented Nov 6, 2024

100.9 npm error gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"

Means that Python is NOT your problem.

Your problem is:

100.9 npm error gyp http fetch GET https://nodejs.org/download/release/v18.20.4/node-v18.20.4-headers.tar.gz attempt 1 failed with UNABLE_TO_GET_ISSUER_CERT_LOCALLY

@unaccepted
Copy link
Author

Thanks @cclauss for pointing out. I am using corporate laptop and it has zscalar so I might be running these behind a proxy. Is there a way to setup a my personal cert that node can use. Can you provide some reference.

@nazarioa
Copy link

nazarioa commented Jan 14, 2025

I am running into a similar issue. Bellow is the error output. I suspect that this has to do with the operating system version not being compatible with node-gyp. Running 15.1.1.

I am also using a corporate machine that has VPN / proxy / firewalls.

Error

npm i
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Use your platform's native DOMException instead
npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm warn deprecated @types/[email protected]: Types for the Google Maps browser API have moved to @types/google.maps. Note: these types are not for the googlemaps npm package, which is a Node API.
npm warn deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
npm error code 1
npm error path /Users/na/Developer/acme/web-app/node_modules/weak-napi
npm error command failed
npm error command sh -c node-gyp-build
npm error CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
npm error   LIBTOOL-STATIC Release/nothing.a
npm error   CXX(target) Release/obj.target/weakref/src/weakref.o
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | darwin | arm64
npm error gyp info find Python using Python version 3.9.6 found at "/Users/na/.pyenv/versions/3.9.6/bin/python3"
npm error gyp info spawn /Users/na/.pyenv/versions/3.9.6/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/na/Developer/acme/web-app/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/na/Developer/acme/web-app/node_modules/weak-napi/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/na/Developer/acme/web-app/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/na/Library/Caches/node-gyp/22.13.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/na/Library/Caches/node-gyp/22.13.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/na/Developer/acme/web-app/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/na/Library/Caches/node-gyp/22.13.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/na/Developer/acme/web-app/node_modules/weak-napi',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
npm error In file included from ../src/weakref.cc:1:
npm error In file included from /Users/na/Developer/acme/web-app/node_modules/node-addon-api/napi.h:5:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:515:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/search.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/iterator_operations.h:12:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/iter_swap.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/swap.h:16:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_nothrow_move_constructible.h:15:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_nothrow_constructible.h:17:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
npm error    46 | #   error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
npm error       |     ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace
npm error    59 | using ::nullptr_t;
npm error       |       ~~^
npm error In file included from ../src/weakref.cc:1:
npm error In file included from /Users/na/Developer/acme/web-app/node_modules/node-addon-api/napi.h:5:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:515:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/search.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/iterator_operations.h:13:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/ranges_iterator_concept.h:13:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/concepts.h:16:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/constructible.h:13:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/destructible.h:13:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_nothrow_destructible.h:16:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_scalar.h:17:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr'?
npm error    26 | struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
npm error       |                            ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: error: template argument for template type parameter must be a type
npm error    26 | struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
npm error       |                            ^~~~~~~~~
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:23:17: note: template parameter is declared here
npm error    23 | template <class _Tp>
npm error       |                 ^
npm error In file included from ../src/weakref.cc:1:
npm error In file included from /Users/na/Developer/acme/web-app/node_modules/node-addon-api/napi.h:5:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:515:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/search.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/iterator_operations.h:15:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/advance.h:26:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/limits:819:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:508:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:14:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdint:149:5: error: <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
npm error   149 | #   error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
npm error       |     ^
npm error In file included from ../src/weakref.cc:1:
npm error In file included from /Users/na/Developer/acme/web-app/node_modules/node-addon-api/napi.h:5:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:521:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/bind.h:20:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:272:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/compare:145:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/compare_partial_order_fallback.h:13:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/partial_order.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/weak_order.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/strong_order.h:20:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:5: error: <cmath> tried including <math.h> but didn't find libc++'s <math.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
npm error   322 | #   error <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. \
npm error       |     ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:583:15: error: expected unqualified-id
npm error   583 |   return std::isnan(__lcpp_x);
npm error       |               ^
npm error /usr/local/include/math.h:166:5: note: expanded from macro 'isnan'
npm error   166 |     ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
npm error       |     ^
npm error In file included from ../src/weakref.cc:1:
npm error In file included from /Users/na/Developer/acme/web-app/node_modules/node-addon-api/napi.h:5:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:521:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/bind.h:20:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:272:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/compare:145:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/compare_partial_order_fallback.h:13:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/partial_order.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/weak_order.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/strong_order.h:20:
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:582:46: error: no return statement in constexpr function
npm error   582 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR bool __constexpr_isnan(_A1 __lcpp_x) _NOEXCEPT {
npm error       |                                              ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:597:15: error: expected unqualified-id
npm error   597 |   return std::isinf(__lcpp_x);
npm error       |               ^
npm error /usr/local/include/math.h:161:5: note: expanded from macro 'isinf'
npm error   161 |     ( sizeof(x) == sizeof(float)  ? __inline_isinff((float)(x))          \
npm error       |     ^
npm error In file included from ../src/weakref.cc:1:
npm error In file included from /Users/na/Developer/acme/web-app/node_modules/node-addon-api/napi.h:5:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:521:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/bind.h:20:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:272:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/compare:145:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/compare_partial_order_fallback.h:13:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/partial_order.h:14:
npm error In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/weak_order.h:14:

.... 

sepc

 na@naMBP14 ~/Developer/acme/web-app > node --version
v22.13.0

 na@naMBP14 ~/Developer/acme/web-app > npm --version
10.9.2

 na@naMBP14 ~/Developer/acme/web-app > python --version
Python 3.9.6

 na@naMBP14 ~/Developer/acme/web-app > which python
/Users/na/.pyenv/shims/python

 na@naMBP14 ~/Developer/acme/web-app > nvm --version
0.40.1

 na@naMBP14 ~/Developer/acme/web-app > pyenv --version
pyenv 2.5.0

 na@naMBP14 ~/Developer/acme/web-app > sw_vers
ProductName:		macOS
ProductVersion:		15.1.1
BuildVersion:		24B91

 na@naMBP14 ~/Developer/acme/web-app > node-gyp --version
v11.0.0

 na@naMBP14 ~/Developer/acme/web-app > which node-gyp
/Users/na/.nvm/versions/node/v22.13.0/bin/node-gyp

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

3 participants