degit icon indicating copy to clipboard operation
degit copied to clipboard

degit executes bin.js on windows instead of running it as node

Open aedeveloper opened this issue 3 years ago • 4 comments

the recent updates 2.8.1 & 2.8.2

completely broke degit on windows 10.

when I run npx degit sveltejs/template . image

unable to clone any repo because bin.js file gets executed by .js default app (vscode in my case). instead of running node bin.js in command line path.

however version 2.8.0 works fine doesn't have this behavior

aedeveloper avatar Apr 01 '21 08:04 aedeveloper

me too..has degraded processing

amsterdam-littlehill avatar Apr 01 '21 08:04 amsterdam-littlehill

image

amsterdam-littlehill avatar Apr 01 '21 08:04 amsterdam-littlehill

same thing for unix OSs in the compiled form the shebang #!/usr/bin/env node is missing so the OS (or npx for that matter) is just exuecuting it as a normal shell script (or in your case vscode)

HannesGitH avatar Apr 01 '21 09:04 HannesGitH

oh i see , this is more or less a duplicate of #274

HannesGitH avatar Apr 01 '21 09:04 HannesGitH