anytype-ts
anytype-ts copied to clipboard
local installation / setup error on macos
trafficstars
Have you read a contributing guide?
- [X] I have read CONTRIBUTING.md
- [X] I have searched the existing issues and didn't find any that were similar
- [X] I have considered creating a pull request with fixes instead of a bug report and want to proceed
Current Behavior
antype-ts fails during installation with the following error on macos silicon
it seems to be some problem with keytar
npm i
> [email protected] postinstall
> npx electron-builder install-app-deps
• electron-builder version=24.13.3
• loaded configuration file=package.json ("build" field)
• rebuilding native dependencies [email protected] platform=darwin arch=arm64
⨯ cannot execute cause=exit status 1
errorOut=npm error code 1
npm error path /Users/instinct/Desktop/anytype-ts/node_modules/keytar
npm error command failed
npm error command sh -c prebuild-install || npm run build
npm error > [email protected] build
npm error > node-gyp rebuild
npm error
npm error CXX(target) Release/obj.target/keytar/src/async.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.12.2 found at "/opt/miniconda3/bin/python3"
npm error gyp info spawn /opt/miniconda3/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/instinct/Desktop/anytype-ts/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/instinct/Desktop/anytype-ts/node_modules/keytar/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/instinct/Desktop/anytype-ts/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/instinct/.electron-gyp/33.0.1/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/instinct/.electron-gyp/33.0.1',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/instinct/Desktop/anytype-ts/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/instinct/.electron-gyp/33.0.1/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/instinct/Desktop/anytype-ts/node_modules/keytar',
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 ../src/async.cc:1:10: fatal error: 'string' file not found
npm error 1 | #include <string>
npm error | ^~~~~~~~
npm error 1 error generated.
npm error make: *** [Release/obj.target/keytar/src/async.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.onExit (/Users/instinct/Desktop/anytype-ts/node_modules/node-gyp/lib/build.js:203:23)
npm error gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Darwin 24.0.0
npm error gyp ERR! command "/Users/instinct/.nvm/versions/node/v20.5.1/bin/node" "/Users/instinct/Desktop/anytype-ts/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /Users/instinct/Desktop/anytype-ts/node_modules/keytar
npm error gyp ERR! node -v v20.5.1
npm error gyp ERR! node-gyp -v v9.4.1
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /Users/instinct/.npm/_logs/2024-11-05T13_03_56_759Z-debug-0.log
command=/Users/instinct/.nvm/versions/node/v20.5.1/bin/node /Users/instinct/Desktop/anytype-ts/node_modules/npm/bin/npm-cli.js rebuild [email protected]
workingDir=
npm ERR! code 1
Expected Behavior
It should install by following the instructions on README
Steps To Reproduce
- git clone the repo
- run
npm i - check the logged errors
Environment
- OS: macOS 15
- Version:
Anything else?
No response