node-tree-sitter icon indicating copy to clipboard operation
node-tree-sitter copied to clipboard

Module not found Error

Open hoangvu99 opened this issue 2 years ago • 1 comments

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!

hoangvu99 avatar Feb 06 '23 14:02 hoangvu99

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

alehander92 avatar Feb 20 '23 19:02 alehander92