Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error code Trying to copy from a source that does not exist

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?

like image 485
ー PupSoZeyDe ー Avatar asked May 23 '26 06:05

ー PupSoZeyDe ー


2 Answers

I fixed this simply by choosing NOT to initialise a git repository.

like image 134
CommonCoreTawan Avatar answered May 26 '26 07:05

CommonCoreTawan


For me, uninstalling NodeJS/Nodist and reinstalling in a directory without spaces in the name fixed this. Definitely a classic Windows problem.

like image 31
womblemuppet Avatar answered May 26 '26 06:05

womblemuppet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!