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

corepack pnpm install failed #44

Open
tonyfettes opened this issue Nov 7, 2024 · 0 comments
Open

corepack pnpm install failed #44

tonyfettes opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tonyfettes
Copy link
Contributor

$ corepack pnpm install
Lockfile is up to date, resolution step is skipped
Already up to date

> [email protected] install /Users/haoxiang/Workspace/moonbit/tree-sitter
> node-gyp rebuild

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.9.6 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"

gyp info spawn /Applications/Xcode.app/Contents/Developer/usr/bin/python3
gyp info spawn args [
gyp info spawn args '/Users/haoxiang/.cache/node/corepack/pnpm/9.12.3/dist/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 '/Users/haoxiang/Workspace/moonbit/tree-sitter/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/haoxiang/.cache/node/corepack/pnpm/9.12.3/dist/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/haoxiang/Library/Caches/node-gyp/20.10.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=/Users/haoxiang/Library/Caches/node-gyp/20.10.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/haoxiang/.cache/node/corepack/pnpm/9.12.3/dist/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/haoxiang/Library/Caches/node-gyp/20.10.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/haoxiang/Workspace/moonbit/tree-sitter',
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/tree_sitter_moonbit_binding/bindings/node/binding.o
../bindings/node/binding.cc:1:10: fatal error: 'tree_sitter/parser.h' file not found
    1 | #include "tree_sitter/parser.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/tree_sitter_moonbit_binding/bindings/node/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/Users/haoxiang/.cache/node/corepack/pnpm/9.12.3/dist/node_modules/node-gyp/lib/build.js:216:23)
gyp ERR! System Darwin 24.0.0
gyp ERR! command "/Users/haoxiang/Library/Application Support/fnm/node-versions/v20.10.0/installation/bin/node" "/Users/haoxiang/.cache/node/corepack/pnpm/9.12.3/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/haoxiang/Workspace/moonbit/tree-sitter
gyp ERR! node -v v20.10.0
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok
 ELIFECYCLE  Command failed with exit code 1.
@tonyfettes tonyfettes added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant