Comments (5)
Just found this after hitting the issue myself. During a new extension generation (yo code)- the setup failed because that environment does not have connection to the internet. And because the typings file is only acessible via a github raw URL, rather than a repository like npm, the fetch returns a 404 and fails the rest.
So while debugging this I decided to re-run the install node ./node_modules/vscode/bin/install which results in the above error. The error message is wrong/misleading, because for starters it's not looking at the package.json file at all, it's looking for an environment variable; process.env.npm_package_engines_vscode
This means the installer will also never work unless it's run via the yeoman generator when I can only assume that env variable is defined. Either change the error message, or change the install script to actually use the package.json file (recommended as this would allow it to work outside of the yeoman generator).
from vscode-extension-vscode.
With the new changes you don't need internet to start new extension: https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest
Just do yarn add @types/vscode@<VERSION>
, where version can be 1.34.0, 1.35.0, 1.36.0, etc.
from vscode-extension-vscode.
@rberrelleza does it reproduce from a hello world extensions created via yo code
?
from vscode-extension-vscode.
@bpasero ^ (edit link not working for me, sorry)
from vscode-extension-vscode.
Running this from the CLI worked for me:
npm_package_engines_vscode="^1.19.0" node ./node_modules/vscode/bin/install
from vscode-extension-vscode.
Related Issues (20)
- Failed to get code binary when testing in environment that needs to use strictSSL:false HOT 1
- Missing error messages for bad setup HOT 1
- Add functionality to change locale in VS Code test instance HOT 16
- Servers(child processes) are cashing HOT 1
- vscode-install failed for vscode module HOT 11
- Error installing vscode.d.ts: Error: Request returned status code: 500 HOT 3
- Split module into @types/vscode and vscode-test HOT 8
- Can this module point to microsoft/vscode? HOT 3
- Switch to yarn instead of npm HOT 2
- Pass mocha options for easier CI test reports HOT 2
- Remove lib/shared and update install script
- Move test runner to `vscode-test` HOT 1
- Unable to use local URIs with vscode-resource HOT 1
- Local VSCode No Longer Installed as `stable`... HOT 6
- diff security vulnerability HOT 3
- Wrong node version for extension HOT 1
- [JS] eslint complains: "Unable to resolve path to module 'vscode'" HOT 1
- Can extensions have control for hiding context menus like Add Logpoint.. HOT 1
- Failed to execute fetch TypeError: Cannot read property '0' of undefined HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-extension-vscode.