Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FIX BUG!! npm i Error installing vscode.d.ts: Error: Request returned status code: 404 #67

Open
ME-Msc opened this issue Sep 30, 2023 · 3 comments

Comments

@ME-Msc
Copy link

ME-Msc commented Sep 30, 2023

C:\Users\msc\miniconda3\envs\UavDSL\Lib\site-packages\textX-LS\client>npm i

textX@0.2.0 postinstall
node ./node_modules/vscode/bin/install && npm --prefix libs install vsce

Detected VS Code engine version: ^1.36.1

Error installing vscode.d.ts: Error: Request returned status code: 404
Details:

<title>Error</title>
Cannot GET /api/releases/stable

npm ERR! code 1
npm ERR! path C:\Users\msc\miniconda3\envs\UavDSL\Lib\site-packages\textX-LS\client
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./node_modules/vscode/bin/install && npm --prefix libs install vsce

npm ERR! A complete log of this run can be found in: C:\Users\msc\AppData\Local\npm-cache_logs\2023-09-30T05_01_47_589Z-debug-0.log

@ME-Msc
Copy link
Author

ME-Msc commented Sep 30, 2023

C:\Users\msc\miniconda3\envs\UavDSL\Lib\site-packages\textX-LS\client\node_modules\vscode\bin\install

modify url https://raw.githubusercontent.com/Microsoft/vscode/master/src/vs/vscode.d.ts to https://raw.githubusercontent.com/Microsoft/vscode/master/src/vscode-dts/vscode.d.ts

  1. microsoft/vscode/#62429
    C:\Users\msc\miniconda3\envs\UavDSL\Lib\site-packages\textX-LS\client\node_modules\vscode\bin\install

modify url https://vscode-update.azurewebsites.net/api/releases/stable to https://update.code.visualstudio.com/api/releases/stable

@Z-Rrr
Copy link

Z-Rrr commented Aug 13, 2024

C:\Users\msc\miniconda3\envs\UavDSL\Lib\site-packages\textX-LS\client\node_modules\vscode\bin\install

将 URL 修改为https://raw.githubusercontent.com/Microsoft/vscode/master/src/vs/vscode.d.ts``https://raw.githubusercontent.com/Microsoft/vscode/master/src/vscode-dts/vscode.d.ts

  1. microsoft/vscode/#62429 C:\Users\msc\miniconda3\envs\UavDSL\Lib\site-packages\textX-LS\client\node_modules\vscode\bin\install

将 URL 修改为https://vscode-update.azurewebsites.net/api/releases/stable``https://update.code.visualstudio.com/api/releases/stable

Is this the solution, please?

@ME-Msc
Copy link
Author

ME-Msc commented Aug 14, 2024

I fix it in this way. You can have a try.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants