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

Installation error

Open smgl9 opened this issue 4 years ago • 5 comments

Hi,

I can not figure out why the installation fails on Windows when it was working two/three moths ago. https://github.com/TerosTechnology/colibri/runs/400677109?check_suite_focus=true In Linux is working fine. Is this something directly related with tree-sitter-verilog?

Thanks in advance, I really apreciate your work on GitHub.

> [email protected] install C:\Users\isma\node_modules\tree-sitter-verilog
> node bin/install.js

build
events.js:288
      throw er; // Unhandled 'error' event
      ^

Error: spawn node-gyp ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn node-gyp',
  path: 'node-gyp',
  spawnargs: [ 'configure', 'build' ]
}
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\isma\package.json'
npm WARN isma No description
npm WARN isma No repository field.
npm WARN isma No README data
npm WARN isma No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node bin/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

2020-03-14T11_43_03_639Z-debug.log

smgl9 avatar Mar 14 '20 11:03 smgl9

Taking a look into the logs, it seems that the problem is in a deprecated library, that's the difference between fail and success: npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

But in Linux is working anyway.

smgl9 avatar Mar 14 '20 12:03 smgl9

Thank you for reporting. I will try finding Windows machine to debug the issue. Looks like it can't find node-gyp to spawn :thinking: Can you try installing node-gyp https://github.com/nodejs/node-gyp#on-windows ?

drom avatar Mar 15 '20 23:03 drom

I tried what you suggested, following the installation instructions, configuring the paths, etc. But there is no success :(

smgl9 avatar Mar 19 '20 01:03 smgl9

Any news?

Thank you!

qarlosalberto avatar May 09 '20 12:05 qarlosalberto

Maybe it's related: https://github.com/georgewfraser/vscode-tree-sitter/issues/28

qarlosalberto avatar May 18 '20 17:05 qarlosalberto