Skip to content

Installation Error - Version Mismatch? Also cannot find <memory> #762

@ZachG2004

Description

@ZachG2004

Seeing a few installation errors with npm install node-pty. Notably it says cannot be found. I am guessing there is a version mismatch?

I have installed:

[2025-02-21]zachfrost: ~ % python3 --version
Python 3.13.2

[2025-02-21]zachfrost: ~ % node --version
v23.7.0

PYTHON SETUP UTILS
==> python-setuptools: stable 75.8.0 (bottled)
/opt/homebrew/Cellar/python-setuptools/75.8.0 (982 files, 8.3MB) *
Poured from bottle using the formulae.brew.sh API on 2025-02-21 at 20:18:32
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/python-setuptools.rb
License: MIT
==> Dependencies
Build: [email protected] ✘, [email protected]

I do have installed Python3.10.16 through Homebrew as well. Not sure if I should be routing Node here?

INSTALL LOG:
npm error code 1 npm error path /Users/zachfrost/node_modules/node-pty npm error command failed npm error command sh -c node-gyp rebuild npm error CXX(target) Release/obj.target/pty/src/unix/pty.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.13.2 found at "/opt/homebrew/opt/[email protected]/bin/python3.13" npm error gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.13 npm error gyp info spawn args [ npm error gyp info spawn args '/opt/homebrew/lib/node_modules/npm/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/zachfrost/node_modules/node-pty/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/zachfrost/Library/Caches/node-gyp/23.7.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/zachfrost/Library/Caches/node-gyp/23.7.0', npm error gyp info spawn args '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/Users/zachfrost/Library/Caches/node-gyp/23.7.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/Users/zachfrost/node_modules/node-pty', 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 In file included from ../src/unix/pty.cc:20: npm error In file included from ../../nan/nan.h:62: npm error In file included from /Users/zachfrost/Library/Caches/node-gyp/23.7.0/include/node/node.h:73: npm error /Users/zachfrost/Library/Caches/node-gyp/23.7.0/include/node/v8.h:21:10: fatal error: 'memory' file not found npm error 21 | #include <memory> npm error | ^~~~~~~~ npm error 1 error generated. npm error make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1 npm error gyp ERR! build error npm error gyp ERR! stack Error: make failed with exit code: 2 npm error gyp ERR! stack at ChildProcess.<anonymous> (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23) npm error gyp ERR! System Darwin 24.3.0 npm error gyp ERR! command "/opt/homebrew/Cellar/node/23.7.0/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm error gyp ERR! cwd /Users/zachfrost/node_modules/node-pty npm error gyp ERR! node -v v23.7.0 npm error gyp ERR! node-gyp -v v11.0.0 npm error gyp ERR! not ok npm error A complete log of this run can be found in: /Users/zachfrost/.npm/_logs/2025-02-22T01_24_33_563Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions