因为我在这里关注 VS code 插件/扩展教程您的第一个扩展 | Visual Studio 代码扩展 API https://code.visualstudio.com/api/get-started/your-first-extension,我收到以下错误。
> 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。该错误有什么问题以及如何修复?
我只是通过选择不初始化 git 存储库来解决这个问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)