microsoft / vscode-generator-code

Visual Studio Code extension generator
Other
1.3k stars 224 forks source link

Running "yo code" fails after filling out questionairre with a package install error #443

Closed yesseruser closed 2 months ago

yesseruser commented 11 months ago

This is the output:

> yo code

     _-----_     ╭──────────────────────────╮
    |       |    │   Welcome to the Visual  │
    |--(o)--|    │   Studio Code Extension  │
   `---------´   │        generator!        │
    ( _´U`_ )    ╰──────────────────────────╯
    /___A___\   /
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

? What type of extension do you want to create? New Extension (TypeScript)
? What's the name of your extension? FirstExt
? What's the identifier of your extension? firstext
? What's the description of your extension? It exists.
? Initialize a git repository? Yes
? Bundle the source code with webpack? No
? Which package manager to use? npm

Writing in E:\Programming\VSCodeExtensions\firstext...
   create firstext\.vscode\extensions.json
   create firstext\.vscode\launch.json
   create firstext\.vscode\settings.json
   create firstext\.vscode\tasks.json
   create firstext\package.json
   create firstext\tsconfig.json
   create firstext\.vscodeignore
   create firstext\vsc-extension-quickstart.md
   create firstext\.gitignore
   create firstext\README.md
   create firstext\CHANGELOG.md
   create firstext\src\extension.ts
   create firstext\src\test\extension.test.ts
   create firstext\.vscode-test.mjs
   create firstext\.eslintrc.json

Changes to package.json were detected.

Running npm install for you to install the required dependencies.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @types/vscode@^1.85.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in: C:\Users\matej\AppData\Local\npm-cache\_logs\2023-12-07T21_23_17_921Z-debug-0.log
Error code

Command failed with exit code 1: npm install

Here are all the generated log files: 2023-12-07T21_26_36_083Z-debug-0.log 2023-12-07T21_26_53_603Z-debug-0.log 2023-12-07T21_26_54_471Z-debug-0.log 2023-12-07T21_26_35_211Z-debug-0.log

yesseruser commented 11 months ago

This happens on Windows 11.

aeschli commented 2 months ago

Please try again. I think you were unlucky trying this right when we published the types right after releasing the build.