As I was following the VS code plugin/extension tutorial here Your First Extension | Visual Studio Code Extension API, I got the following error.
> 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
Simply the command I ran is, as the tutorial,
npm install -g yo generator-code
yo code
I'm on Windows 10 elevated Powershell. What's wrong with the error and how to fix?
I fixed this simply by choosing NOT to initialise a git repository.
For me, uninstalling NodeJS/Nodist and reinstalling in a directory without spaces in the name fixed this. Definitely a classic Windows problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With