Fail to install because of `https`
See original GitHub issueI try to install CRA for neovim, but it raise an error like:
[coc.nvim] Download rust-analyzer failed, you can get it from https://github.com/rust-analyzer/rust-analyzer
There is the output of :CocOpenLog
:
2021-05-26T00:23:27.419 INFO (pid:415980) [plugin] - coc.nvim 0.0.80-998c7d8034 initialized with node: v15.14.0 after 1065ms
2021-05-26T00:23:28.728 ERROR (pid:415980) [extension:coc-rust-analyzer] - TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
at new NodeError (node:internal/errors:329:5)
at new ClientRequest (node:_http_client:171:11)
at request (node:https:333:10)
at /home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:7854:17
at new Promise (<anonymous>)
at fetch (/home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:7830:10)
at getLatestRelease (/home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:8056:26)
at Object.activate (/home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:9046:30)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async Object.activate (/home/peterlits/.config/nvim/plugged/coc.nvim/build/index.js:223:1305) {
code: 'ERR_INVALID_PROTOCOL'
}
2021-05-26T00:23:38.136 INFO (pid:415980) [attach] - receive notification: highlight []
2021-05-26T00:23:42.115 INFO (pid:415980) [attach] - receive request: CocAutocmd [ 'BufWritePre', 1 ]
2021-05-26T00:23:46.163 INFO (pid:415980) [attach] - receive notification: highlight []
2021-05-26T00:24:00.806 INFO (pid:415980) [attach] - receive notification: openLog []
It tell me that https
is not supported. Do I need to install something in node.js or something else?
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
pip install fails with "connection error: [SSL - Stack Overflow
For me, it came out that my date and time was misconfigured on Raspberry Pi. The result was that all SSL and HTTPS...
Read more >September 2022 Cumulative Security Update fails to install ...
Windows 10's latest update appears to be failing to install for some folks, and is purportedly causing serious trouble for a handful of...
Read more >Fix problems installing Chrome - Google Chrome Help
If you get an error message when you try to download and install Google Chrome, try these fixes. Fix most installation errors.
Read more >How to Fix “Google Chrome Installer Failed to Start” Error in ...
Fix Installation failed. The Google Chrome Installer Failed to Start,Facebook Page : https ://www.facebook.com/MeMJTubeFollow on twitter: ...
Read more >“Unable to install. A required install component is missing or ...
Before applying any updates, check whether the main version of the software you are trying to install is already installed in the system....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just hit the same
ERR_INVALID_PROTOCOL
issue and I found these: https://github.com/TooTallNate/node-https-proxy-agent/issues/115 and https://github.com/TooTallNate/node-agent-base/pull/47 It seemsagent-base
needs to be upgraded.Thanks because it is really useful! I do not install rust-analyzer because I am lazy… But after the owner fix it, I remove the related part in
:CocConfig
, run:CocUpdate
, ans reopen/tmp/tmp.rs
. It finally works well!