【发布时间】:2021-05-20 02:51:40
【问题描述】:
当我在Your First Extension | Visual Studio Code Extension API 学习 VS 代码插件/扩展教程时,我收到了以下错误。
> yo code
? What type of extension do you want to create? New Extension (TypeScript)
? What's the name of your extension? HelloWorld
? What's the identifier of your extension? helloworld
? What's the description of your extension?
? Initialize a git repository? Yes
? Bundle the source code with webpack? No
? Which package manager to use? npm
Writing in C:\pg\vscode\helloworld...
Error code
Trying to copy from a source that does not exist: C:\Program Files (x86)\Nodist\bin\node_modules\generator-code\generators\app\templates\ext-command-ts/vscode
只是我运行的命令,作为教程,
npm install -g yo generator-code
yo code
我使用的是 Windows 10 升级版 Powershell。错误有什么问题以及如何解决?
【问题讨论】: