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

Error Using Git Bash under Windows #86

Closed
JamesMc86 opened this issue Jul 18, 2022 · 1 comment
Closed

Error Using Git Bash under Windows #86

JamesMc86 opened this issue Jul 18, 2022 · 1 comment

Comments

@JamesMc86
Copy link

Perhaps a bit of an odd combo but I hit an error when running under git bash on Windows:

TypeError: process.stdin.setRawMode is not a function
    at C:\Users\JamesMcNally\AppData\Local\npm-cache\_npx\b58944764482de26\node_modules\create-tauri-app\dist\index.js:667:19
    at Generator.next (<anonymous>)
    at C:\Users\JamesMcNally\AppData\Local\npm-cache\_npx\b58944764482de26\node_modules\create-tauri-app\dist\index.js:40:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\JamesMcNally\AppData\Local\npm-cache\_npx\b58944764482de26\node_modules\create-tauri-app\dist\index.js:36:12)
    at keypress (C:\Users\JamesMcNally\AppData\Local\npm-cache\_npx\b58944764482de26\node_modules\create-tauri-app\dist\index.js:664:28)
    at C:\Users\JamesMcNally\AppData\Local\npm-cache\_npx\b58944764482de26\node_modules\create-tauri-app\dist\index.js:692:11
    at Generator.next (<anonymous>)
    at C:\Users\JamesMcNally\AppData\Local\npm-cache\_npx\b58944764482de26\node_modules\create-tauri-app\dist\index.js:40:71
    at new Promise (<anonymous>)

I presume this relates to this line:

process.stdin.setRawMode(true);

When I run under the Windows command line it runs without the error.

Versions:

Git bash: 2.37.1
Node: 16.16.0

@amrbashir
Copy link
Member

process.stdin.setRawMode is only available when the shell is a tty, and I think git bash is not considered one. Anyhow, with the upcoming rewrite in #77, this will be solved.

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

2 participants