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

The command-line interface can no longer accept any input. #27993

Open
YuniqueUnic opened this issue Feb 6, 2025 · 2 comments
Open

The command-line interface can no longer accept any input. #27993

YuniqueUnic opened this issue Feb 6, 2025 · 2 comments

Comments

@YuniqueUnic
Copy link

Version: Deno 2.1.9

Reproduce steps:

deno npm:create-solana-dapp@latest
> deno npm:create-solana-dapp@latest            
✅ Granted all env access.		( Type Key - A )
┌  create-solana-dapp 4.1.2
✅ Granted all read access.		( Type Key - A )
│
◇  Enter project name
│  sodau
│
◇  Select a framework
│  Next.js
│
◇  Select a template
│  next-tailwind-counter
✅ Granted all run access.		( Type Key - A )
│
┏ ⚠️  Deno requests sys access to "homedir".
┠─ Requested by `node:os.homedir()` API.
┠─ To see a stack trace for this prompt, set the DENO_TRACE_PERMISSIONS environmental variable.
┠─ Learn more at: https://docs.deno.com/go/--allow-sys
┠─ Run again with --allow-sys to bypass this prompt.
┗ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all sys permissions) > 
# At here, the cmd cannot input any char that any typing cannot work properly even I typed Ctrl + C.

I want to use deno instead of npx to execute create-solana-dapp@latest. However, I encountered a very strange problem. deno can correctly handle the download of npm:create-solana-dapp@latest and other tasks. But when initializing the project, that is, during the interactive Q&A for project initialization, I always get stuck in the same place and can no longer input anything. Even Ctrl + C cannot interrupt this task.

deno npm:create-solana-dapp@latest

@YuniqueUnic
Copy link
Author

deno run npm:create-solana-dapp@latest

The same goes for this command.

@YuniqueUnic
Copy link
Author

deno run --allow-all npm:create-solana-dapp@latest

In this way, I successfully initialized the project.
The flag (--allow-all) should be appended after the run sub - command.

However, the problem encountered previously might be a potential hazard. Let's just leave it here.

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

1 participant