
[vagrant@localhost python-import-helper]$ npm install > [email protected] postinstall /home/vagrant/vcode/python-import-helper > node ./node_modules/vscode/bin/install Detected VS Code engine version: ^1.34.0 Error installing vscode.d.ts: Error: Request returned status code: 404 Details: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body> <pre>Cannot GET /api/releases/stable</pre> </body> </html> npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: `node ./node_modules/vscode/bin/install` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2021-04-22T03_15_00_071Z-debug.log 这是 npm 的问题,还是 vscode 的问题呀?
换了一台电脑就这个样子了。
1 pkoukk 2021-04-22 11:39:01 +08:00 Error installing vscode.d.ts: Error: Request returned status code: 404 npm ERR! This is probably not a problem with npm. There is likely additional logging output above. |
2 jones2000 2021-04-22 13:46:40 +08:00 看着像网不行, 上梯子试试。 |
3 simple2025 OP @pkoukk 但是我用 npm install axios 没有问题呀 ``` [vagrant@localhost python-import-helper]$ npm install axios npm WARN [email protected] No description npm WARN [email protected] No license field. + [email protected] added 2 packages from 4 contributors and audited 200 packages in 4.952s found 10 vulnerabilities (6 low, 4 high) run `npm audit fix` to fix them, or `npm audit` for details ``` |
4 simple2025 OP @jones2000 我上了梯子了 |
5 Vegetable 2021-04-22 13:52:26 +08:00 你这个 vscode 太老了,现在 stable 都 1.55 了,可能是这个有问题。我之前遇到过插件死活不好使其实是因为 vscode 版本太低的问题。 |
6 simple2025 OP @Vegetable 是的呀,但是怎么修呢 类似的 issue 在这里,https://github.com/microsoft/vscode/issues/120064 但是怎么 update 我不会呀, 他也没有说 |
7 simple2025 OP @Vegetable 我插件只是当初随便写写的呀,有没有迁移的文档? |
8 simple2025 OP @Vegetable 不会迁移,感觉我插件要重写了,.. |
9 7075 2021-04-22 15:19:46 +08:00 重新下个最新的 vscode 呗 |
10 simple2025 OP @7075 我就是最新的 vscode 呀, 1.55.x |
11 wednesdayco 2021-04-23 12:33:31 +08:00 你这里面是不是有指定地址的 npm 包 0 0 |