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

Build fails with no such file or directory, uv_cwd #37

Open
uliw opened this issue Sep 13, 2022 · 0 comments
Open

Build fails with no such file or directory, uv_cwd #37

uliw opened this issue Sep 13, 2022 · 0 comments

Comments

@uliw
Copy link

uliw commented Sep 13, 2022

running npm -g install [email protected]:milisims/tree-sitter-org.git
I get

npm ERR! code 7
npm ERR! path /usr/local/lib/node_modules/tree-sitter-org
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! sh: line 1: prebuild-install: command not found
npm ERR! shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp ERR! UNCAUGHT EXCEPTION 
npm ERR! gyp ERR! stack Error: ENOENT: no such file or directory, uv_cwd
npm ERR! gyp ERR! stack     at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:126:28)
npm ERR! gyp ERR! stack     at setopts (/usr/lib64/node_modules/npm17/node_modules/glob/common.js:89:21)
npm ERR! gyp ERR! stack     at new Glob (/usr/lib64/node_modules/npm17/node_modules/glob/glob.js:132:3)
npm ERR! gyp ERR! stack     at Function.glob.hasMagic (/usr/lib64/node_modules/npm17/node_modules/glob/glob.js:98:11)
npm ERR! gyp ERR! stack     at rimraf (/usr/lib64/node_modules/npm17/node_modules/rimraf/rimraf.js:106:36)
npm ERR! gyp ERR! stack     at clean (/usr/lib64/node_modules/npm17/node_modules/node-gyp/lib/clean.js:11:3)
npm ERR! gyp ERR! stack     at Object.self.commands.<computed> [as clean] (/usr/lib64/node_modules/npm17/node_modules/node-gyp/lib/node-gyp.js:41:37)
npm ERR! gyp ERR! stack     at run (/usr/lib64/node_modules/npm17/node_modules/node-gyp/bin/node-gyp.js:80:30)
npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:78:11)
npm ERR! gyp ERR! System Linux 5.19.2-1-default
npm ERR! gyp ERR! command "/usr/bin/node17" "/usr/lib64/node_modules/npm17/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! node:internal/bootstrap/switches/does_own_process_state:126
npm ERR!     cachedCwd = rawMethods.cwd();
npm ERR!                            ^
npm ERR! 
npm ERR! Error: ENOENT: no such file or directory, uv_cwd
npm ERR!     at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:126:28)
npm ERR!     at errorMessage (/usr/lib64/node_modules/npm17/node_modules/node-gyp/bin/node-gyp.js:127:28)
npm ERR!     at issueMessage (/usr/lib64/node_modules/npm17/node_modules/node-gyp/bin/node-gyp.js:133:3)
npm ERR!     at process.<anonymous> (/usr/lib64/node_modules/npm17/node_modules/node-gyp/bin/node-gyp.js:117:3)
npm ERR!     at process.emit (node:events:527:28)
npm ERR!     at process._fatalException (node:internal/process/execution:167:25) {
npm ERR!   errno: -2,
npm ERR!   code: 'ENOENT',
npm ERR!   syscall: 'uv_cwd'
npm ERR! }
npm ERR! 
npm ERR! Node.js v17.7.1

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-09-13T15_59_20_845Z-debug-0.log
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

1 participant