Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aedeveloper opened this issue Apr 1, 2021 · 4 comments
Open

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

aedeveloper opened this issue Apr 1, 2021 · 4 comments

Comments

@aedeveloper
Copy link

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

@amsterdam-littlehill
Copy link

me too..has degraded processing

@amsterdam-littlehill
Copy link

image

@HannesGitH
Copy link

HannesGitH commented Apr 1, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants