Visual studio code 尝试从不存在的源复制时出错代码

Visual studio code 尝试从不存在的源复制时出错代码,visual-studio-code,yeoman,Visual Studio Code,Yeoman,当我在这里学习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 yo

当我在这里学习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
我使用的是Windows10提升的Powershell。错误出了什么问题以及如何修复?

从上下文“nodest”中,我假设您已经在机器上安装了nodest,而不是node.js实例。我不确定您是如何安装node.js的,但看起来问题的原因是node.js和Nodeist之间的冲突

也许您可以尝试卸载节点列表并重试,或者在不同的计算机或虚拟机上尝试相同的命令