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

Module not found Error #122

Open
hoangvu99 opened this issue Feb 6, 2023 · 1 comment
Open

Module not found Error #122

hoangvu99 opened this issue Feb 6, 2023 · 1 comment

Comments

@hoangvu99
Copy link

I got these errors when i tried to install "tree-sitter" and "tree-sitter-python"

WARNING in ./node_modules/tree-sitter-python/bindings/node/index.js 2:2-76
Module not found: Error: Can't resolve '../../build/Release/tree_sitter_python_binding'

WARNING in ./node_modules/tree-sitter-python/bindings/node/index.js 8:4-76
Module not found: Error: Can't resolve '../../build/Debug/tree_sitter_python_binding'

WARNING in ./node_modules/tree-sitter/index.js 3:12-66
Module not found: Error: Can't resolve './build/Release/tree_sitter_runtime_binding'

WARNING in ./node_modules/tree-sitter/index.js 6:14-66
Module not found: Error: Can't resolve './build/Debug/tree_sitter_runtime_binding'

Help me!

@alehander92
Copy link

you need to use npm i in the tree-sitter-python folder: it seems to build the needed _binding files: at least this worked for a similar case for me

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

2 participants