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

nvm - strange error #392

Closed
palandovalex opened this issue May 13, 2022 · 3 comments · Fixed by #394
Closed

nvm - strange error #392

palandovalex opened this issue May 13, 2022 · 3 comments · Fixed by #394

Comments

@palandovalex
Copy link

I am using nvm, and i installed this package

But when i tried to run it in terminal - i get this stack trace:


Unknown command '/home/apalandov/.nvm/versions/node/v18.1.0/bin/node /home/apalandov/.npm-global/bin/bash-language-server'. Run with -h for help.
(node:1466264) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

node:internal/deps/undici/undici:4816
            throw new TypeError("Failed to parse URL from " + input, { cause: err });
                  ^

TypeError: Failed to parse URL from /home/apalandov/.npm-global/lib/node_modules/bash-language-server/node_modules/web-tree-sitter/tree-sitter.wasm
    at new Request (node:internal/deps/undici/undici:4816:19)
........
      at /home/apalandov/.npm-global/lib/node_modules/bash-language-server/node_modules/web-tree-sitter/tree-sitter.js:1:144 {
    input: '/home/apalandov/.npm-global/lib/node_modules/bash-language-server/node_modules/web-tree-sitter/tree-sitter.wasm',
    code: 'ERR_INVALID_URL'
  }
}

Node.js v18.1.0
@skovhus
Copy link
Collaborator

skovhus commented May 14, 2022

This should be fixed in 3.0.1, can you verify this? It was an issue with node 18 support.

@palandovalex
Copy link
Author

in this moment i solve it by downgrade node

@skovhus
Copy link
Collaborator

skovhus commented May 23, 2022

Node 18 support should be fixed in 3.0.3.

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

Successfully merging a pull request may close this issue.

2 participants