vscode 插件 npm install 出现了问题 - V2EX
simple2025
0D

vscode 插件 npm install 出现了问题

  •  
  •   simple2025 Apr 22, 2021 4606 views
    This topic created in 1861 days ago, the information mentioned may be changed or developed.
    [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 的问题呀?

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

    11 replies    2021-04-23 12:33:31 +08:00
    pkoukk
        1
    pkoukk  
       Apr 22, 2021
    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
        2
    jones2000  
       Apr 22, 2021
    看着像网不行, 上梯子试试。
    simple2025
        3
    simple2025  
    OP
       Apr 22, 2021
    @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
    ```
    simple2025
        4
    simple2025  
    OP
       Apr 22, 2021
    @jones2000 我上了梯子了
    Vegetable
        5
    Vegetable  
       Apr 22, 2021
    你这个 vscode 太老了,现在 stable 都 1.55 了,可能是这个有问题。我之前遇到过插件死活不好使其实是因为 vscode 版本太低的问题。
    simple2025
        6
    simple2025  
    OP
       Apr 22, 2021
    @Vegetable 是的呀,但是怎么修呢 类似的 issue 在这里,https://github.com/microsoft/vscode/issues/120064

    但是怎么 update 我不会呀, 他也没有说
    simple2025
        7
    simple2025  
    OP
       Apr 22, 2021
    @Vegetable 我插件只是当初随便写写的呀,有没有迁移的文档?
    simple2025
        8
    simple2025  
    OP
       Apr 22, 2021
    @Vegetable 不会迁移,感觉我插件要重写了,..
    7075
        9
    7075  
       Apr 22, 2021
    重新下个最新的 vscode 呗
    simple2025
        10
    simple2025  
    OP
       Apr 22, 2021
    @7075 我就是最新的 vscode 呀, 1.55.x
    wednesdayco
        11
    wednesdayco  
       Apr 23, 2021
    你这里面是不是有指定地址的 npm 包 0 0
    About     Help     Advertise     Blog     API     FAQ     Solana     979 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 54ms UTC 19:55 PVG 03:55 LAX 12:55 JFK 15:55
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86