Giter VIP home page Giter VIP logo

Comments (11)

vscodebot avatar vscodebot commented on June 10, 2024

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

from vscode-extension-vscode.

wiener0zyj avatar wiener0zyj commented on June 10, 2024

Error installing vscode.d.ts: Error: read ECONNRESET
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: vscode-install && 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! C:\Users\zhangyunjin\AppData\Roaming\npm-cache_logs\2019-01-21T02_16_08_792Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: cd extension && npm install && cd ..
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! C:\Users\zhangyunjin\AppData\Roaming\npm-cache_logs\2019-01-21T02_16_08_883Z-debug.log

from vscode-extension-vscode.

wiener0zyj avatar wiener0zyj commented on June 10, 2024

configuration in package.json
"scripts": {
"update-vscode": "vscode-install",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "vscode-install && node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
}

from vscode-extension-vscode.

wiener0zyj avatar wiener0zyj commented on June 10, 2024

all the repos could not run "npm install" now, even if vscode demo "mock debug"

from vscode-extension-vscode.

bpasero avatar bpasero commented on June 10, 2024

This sounds like an issue with your internet connection ("ECONNRESET") and not VSCode. I suggest you look into that.

from vscode-extension-vscode.

wiener0zyj avatar wiener0zyj commented on June 10, 2024

Maybe, I am in china, I just tried to create an ECS machine in american. and run "npm install". It success. the output is as following:

Detected VS Code engine version: ^1.23.0
Found minimal version that qualifies engine range: 1.23.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/7c7da59c2333a1306c41e6e7b68d7f0caa7b3d45/src/vs/vscode.d.ts
vscode.d.ts successfully installed!

And my local machine in china always get this failure:

Detected VS Code engine version: ^1.23.0
Error installing vscode.d.ts: Error: read ECONNRESET
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `vscode-install && 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.

could you confirm this is a network error, and do I have any way to solve this problem?

from vscode-extension-vscode.

wiener0zyj avatar wiener0zyj commented on June 10, 2024

@bpasero by the way, I have tried to use VPN to enable my local machine to access to american net, but always get this error.

from vscode-extension-vscode.

wiener0zyj avatar wiener0zyj commented on June 10, 2024

@bpasero we have finally resolved the problem. the situation is:
IN CHINA

  1. node v8.12.0 could not work, because "getURLMatchingEngine" failed with url "https://vscode-update.azurewebsites.net/api/releases/stable"
  2. node v10.15.0 could work

IN AMERICAN
both node v8.12.0 and node v10.15.0 could work

from vscode-extension-vscode.

xianghongai avatar xianghongai commented on June 10, 2024
  • windows 10 64bit;
  • node 10.16.0;
  • npm 6.9.0
> [email protected] postinstall C:\Users\ghc-xianghongai\me\add-ons\vscode-opened-editors
> node ./node_modules/vscode/bin/install

Detected VS Code engine version: *
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/master/src/vs/vscode.d.ts
Error installing vscode.d.ts: Error: read ECONNRESET
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!     C:\nodejs\node_cache\_logs\2019-12-26T03_11_22_106Z-debug.log

from vscode-extension-vscode.

tsssp avatar tsssp commented on June 10, 2024

windows 10 64bit;
node 10.16.1;
npm 6.9.0

[email protected] postinstall C:\TP\files\work\vscode-node-debug2-1.42.1
node ./node_modules/vscode/bin/install

Detected VS Code engine version: ^1.31.0
Found minimal version that qualifies engine range: 1.31.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/7c66f58312b48ed8ca4e387ebd9ffe9605332caa/src/vs/vscode.d.ts
Error installing vscode.d.ts: Error: read ECONNRESET
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! C:\Program Files\nodejs\node_cache_logs\2020-04-02T23_34_46_039Z-debug.log

from vscode-extension-vscode.

octref avatar octref commented on June 10, 2024

That error would indicate that you failed to connect to GitHub. Can you check if you are able to connect to https://raw.githubusercontent.com/Microsoft/vscode/7c66f58312b48ed8ca4e387ebd9ffe9605332caa/src/vs/vscode.d.ts?

from vscode-extension-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.