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

apple silicon (m1 max) npm install error #73

Open
Kaifuny opened this issue Feb 8, 2023 · 0 comments
Open

apple silicon (m1 max) npm install error #73

Kaifuny opened this issue Feb 8, 2023 · 0 comments

Comments

@Kaifuny
Copy link

Kaifuny commented Feb 8, 2023

Error report

error ~/Documents/Github/nteract/applications/desktop/node_modules/zeromq: Command failed.
Exit code: 1
Command: node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
Arguments:
Directory: ~/Documents/Github/nteract/applications/desktop/node_modules/zeromq
Output:
prebuild-install WARN install No prebuilt binaries found (target=18.4.0 runtime=node arch=arm64 libc= platform=darwin)

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | arm64
gyp info find Python using Python version 3.10.9 found at "/opt/homebrew/opt/[email protected]/bin/python3.10"
(node:64123) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.10
gyp info spawn args [
gyp info spawn args   '~/Documents/Github/nteract/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   '~/Documents/Github/nteract/applications/desktop/node_modules/zeromq/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '~/Documents/Github/nteract/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '~/Library/Caches/node-gyp/18.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=~/Library/Caches/node-gyp/18.4.0',
gyp info spawn args   '-Dnode_gyp_dir=~/Documents/Github/nteract/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=~/Library/Caches/node-gyp/18.4.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=~/Documents/Github/nteract/applications/desktop/node_modules/zeromq',
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/zmq/binding.o
../binding.cc:28:10: fatal error: 'zmq.h' file not found
#include <zmq.h>
         ^~~~~~~
1 error generated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (~/Documents/Github/nteract/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:537:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Darwin 22.2.0
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