vscode 插件 npm install 出现了问题

2021-04-22 11:15:51 +08:00
 chenqh
[vagrant@localhost python-import-helper]$ npm install

> cqh-python-import-helper@0.0.242 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! cqh-python-import-helper@0.0.242 postinstall: `node ./node_modules/vscode/bin/install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cqh-python-import-helper@0.0.242 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 的问题呀?

换了一台电脑就这个样子了。

3955 次点击
所在节点    Visual Studio Code
11 条回复
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.
jones2000
2021-04-22 13:46:40 +08:00
看着像网不行, 上梯子试试。
chenqh
2021-04-22 13:46:48 +08:00
@pkoukk 但是我用 npm install axios 没有问题呀

```
[vagrant@localhost python-import-helper]$ npm install axios
npm WARN cqh-python-import-helper@0.0.242 No description
npm WARN cqh-python-import-helper@0.0.242 No license field.

+ axios@0.21.1
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
```
chenqh
2021-04-22 13:47:11 +08:00
@jones2000 我上了梯子了
Vegetable
2021-04-22 13:52:26 +08:00
你这个 vscode 太老了,现在 stable 都 1.55 了,可能是这个有问题。我之前遇到过插件死活不好使其实是因为 vscode 版本太低的问题。
chenqh
2021-04-22 13:54:33 +08:00
@Vegetable 是的呀,但是怎么修呢 类似的 issue 在这里,https://github.com/microsoft/vscode/issues/120064

但是怎么 update 我不会呀, 他也没有说
chenqh
2021-04-22 13:55:52 +08:00
@Vegetable 我插件只是当初随便写写的呀,有没有迁移的文档?
chenqh
2021-04-22 14:12:49 +08:00
@Vegetable 不会迁移,感觉我插件要重写了,..
7075
2021-04-22 15:19:46 +08:00
重新下个最新的 vscode 呗
chenqh
2021-04-22 17:00:01 +08:00
@7075 我就是最新的 vscode 呀, 1.55.x
wednesdayco
2021-04-23 12:33:31 +08:00
你这里面是不是有指定地址的 npm 包 0 0

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/772395

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX