Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

arrow keys not working [External module issue under Node 4.*/5.*] #351

Closed
totano opened this issue Sep 12, 2015 · 73 comments
Closed

arrow keys not working [External module issue under Node 4.*/5.*] #351

totano opened this issue Sep 12, 2015 · 73 comments
Labels

Comments

@totano
Copy link

totano commented Sep 12, 2015

I followed the tutorial on VS Code website, installed latest aspnet-generator with npm install -g yo grunt-cli generator-aspnet bower and it went fine, but on the first choice of yo aspnet (application type) i cannot move the cursor with arrows. OS Windows 10

Edit from Sayed: For the latest status see nodejs/node#2996

@peterblazejewicz
Copy link
Member

@totano
Do you mean option select when generator starts? And that you cannot select one?

image

@totano
Copy link
Author

totano commented Sep 12, 2015

yes

@peterblazejewicz
Copy link
Member

@totano Thanks!

The Yeoman uses Inquirer.js module for this: https://github.com/sboudrias/Inquirer.js
We need a help with testing the problem on Win10, any other folks can spot this problem?

@Spinarooni
Copy link
Member

It's working fine for me on my Windows 10 machine using yo 1.4.8 and node.js 0.12.6.

@peterblazejewicz
Copy link
Member

@Spinarooni
Thanks! Appreciated

@sayedihashimi
I assume you should have a Win10 machine in your team :)

@totano
Can you let us know node version you're using? node --version, yo --version
This one npm list -g --depth=0 should list version of generator installed on your machine
Thanks!

@totano
Copy link
Author

totano commented Sep 13, 2015

node v4.0.0
yo 1.4.8
npm
├── bower@1.5.2
├── generator-aspnet@0.0.73
├── grunt-cli@0.1.13
└── yo@1.4.8

@totano
Copy link
Author

totano commented Sep 13, 2015

there's an issue in inquirer, seems node 4 related

@peterblazejewicz
Copy link
Member

@totano
Thanks! Something I though about :(

@peterblazejewicz peterblazejewicz changed the title arrow keys not working arrow keys not working [External lib issue under Node 4.*] Sep 13, 2015
@peterblazejewicz peterblazejewicz changed the title arrow keys not working [External lib issue under Node 4.*] arrow keys not working [External module issue under Node 4.*] Sep 13, 2015
@Plinnio
Copy link

Plinnio commented Sep 14, 2015

I have exactly the same problem. I am on Windows 10, and the first time I created an application it worked, but now the arrow keys don't work when I have to select an application type.

@Spinarooni
Copy link
Member

@Plinnio Are you also running Node v4.0.0?

@Plinnio
Copy link

Plinnio commented Sep 14, 2015

@Spinarooni Yes, this is the latest version I found.

@Spinarooni
Copy link
Member

@Plinnio If you want to roll back to Node 0.12.6 then you can download it from https://nodejs.org/dist/v0.12.6/. The issue seems to be related to the Node 4.0.* release. It seems there is a bug in the Inquirer module: SBoudrias/Inquirer.js#282

@Plinnio
Copy link

Plinnio commented Sep 14, 2015

@Spinarooni Thanks, how do I install that stuff?

@Spinarooni
Copy link
Member

@Plinnio If you 're on Windows 10 x64 then you could download the MSI installer. You may need to uninstall the current version first though. I haven't updated to Node v4 yet so I am not 100 percent sure.

@peterblazejewicz
Copy link
Member

ref: SBoudrias/Inquirer.js#266

@Plinnio
Copy link

Plinnio commented Sep 15, 2015

After installing Node 0.12.6 the issue was solved. Thank you.

@peterblazejewicz
Copy link
Member

I had repeated the problem on Win 8.1 machine at work. Maybe I would be able to contribute somehow to external module
Node 4.1

@dtsiktsiris
Copy link

same thing here
node 4.1.0
yo 1.4.8

on the "yo -v" select list, arrows works fine

@peterblazejewicz
Copy link
Member

@ditsikts Thanks very much. I've forwarded your tip about yo tool generator list selection to original module list

@peterblazejewicz
Copy link
Member

The problem is pinpointed and reposted to Node repo:
nodejs/node#2996

@tienloc1
Copy link

@Spinarooni thank so much your help, it is work good in cmd.exe, but it still not work in git bash.

@peterblazejewicz
Copy link
Member

Someone posted update about Node 4.1.1 fixing a problem:
SBoudrias/Inquirer.js#282 (comment)
I'll try tomorrow at work

@Spinarooni
Copy link
Member

@peterblazejewicz Tested on my Win 10 machine with Node 4.1.1 and I still have the issue at the command prompt and in PowerShell. Works fine using Cmder.

@peterblazejewicz
Copy link
Member

@Spinarooni
Thanks! I've PowerShell, CMD and GitBash Win8.1 at work, so we will have a wide spectrum covered

@peterblazejewicz
Copy link
Member

I've got a new machine at work with Win10.
The 4.2.4 Node (current LTS version) works in all three terminals on this machine:

  • Win CMD
  • PowerShell
  • Git Bash (Git for Windows)

If someone could confirm we can somehow instruct people on windows to update to this (or later) version of Node, maybe as post install hook.
Thanks!

@pumpi
Copy link

pumpi commented Jan 20, 2016

after installing the new git bash not working on Win7 with it
I have install the latest stable version of node (v5.4.1)

@peterblazejewicz
Copy link
Member

@pumpi The LST 4.2.4 version has the same fix btw and it will be used as base release.

@jimmy4701
Copy link

Another cool solution is to use 'cmder'. an emulation of consoles in nodejs to run multiple consoles in a same program on Windows. Cool design, a lot of commands (unix, windows... etc...)

@wolfhoundjesse
Copy link

My keys work, but I found out on accident. The selector indicator never moves, but I can, in fact, choose items from the menu. You know, carefully.

Node 5.5
NPM 3.5.3
Windows 7
Git-Bash

@lincolnpires
Copy link

I had the same problem.

But did as @Spinarooni said and voilá.
Ran yo and then picked the aspnet generator.

Win 8.1 Pro
npm 3.5.2
node 4.1.0

@zhaomiing
Copy link

same issue here,
and solved after upgrade node to v5.5.0

@bastienJS
Copy link

Does not work on:
Windows 10 64bit
Just did

  • npm install generator-aspnet
  • yo aspnet
  • arrows do nothing...
    BUG

@peterblazejewicz
Copy link
Member

@bastienJS
Please post Node/NPM version (I'm using Win10/64 at work).

@jeffpignataro
Copy link

@peterblazejewicz Also running Win10 x64. I'm having the same issue:
Node v5.6.0
NPM v3.7.2

Tried on numerous versions of Node and NPM 2.11.8 previously before upgrading.

@peterblazejewicz peterblazejewicz changed the title arrow keys not working [External module issue under Node 4.*] arrow keys not working [External module issue under Node 4.*/5.*] Feb 29, 2016
@peterblazejewicz
Copy link
Member

This is a recurring problem. The NodeJS project is tracking issue here:
nodejs/node#5384

@SalvatoreMeschini
Copy link

Node version: 5.7.0
Npm version: 3.7.5
Yo: 1.7.0

Same issues here on Windows 10 64 bit :-(

@uurcakmak
Copy link

Hi,

I'm having the same issue on Windows 10 64bit (Build 1511), with following versions,

node: 5.10.1
npm: 3.8.3
yo: 1.7.0

@peombwa
Copy link

peombwa commented Apr 16, 2016

@uurcakmak @SalvatoreMeschini @peterblazejewicz @bastienJS @zhaomiing
I had the same issue when I run yo aspnet
error

The trick is to run yo then select aspnet as the generator
step1

And now you should be able to use the arrow keys.
step2

@peterblazejewicz
Copy link
Member

@pwombwa Thanks for the tips!

@jeffpignataro
Copy link

After having reinstalled yo (amongst pretty much everything else including VS2015, npm, bower, git, npm, node, etc as part of VSCode/.NET Core reinstalls) it appears that yo aspnet is working fine for me now. I'm able to control it as expected. Unfortunately, I don't have a great answer as to what specifically what fixed it for me, but it does appear that reinstalls did fix the issue.

@SalvatoreMeschini
Copy link

SalvatoreMeschini commented Apr 17, 2016

It's a bug, see nodejs/node#5384 and nodejs/node#5927

Sometimes arrows work, most of the times they don't.

@papamarfo
Copy link

Downgrade node and you'd be at peace :)

@projer-zz
Copy link

projer-zz commented Jun 23, 2016

Made it work in Windows 10 (64 bits) with :
Node 4.1.1
Yeoman 1.8.3
Npm 3.8.6

But only in Windows PowerShell, doesn't work in Git Bash.

@Etrahkad
Copy link

Etrahkad commented Jul 5, 2016

Windows Powershell fixes these issues.

@lizboccolini
Copy link

I'm having the same issue with version 6.10.1 of node.

@peterblazejewicz
Copy link
Member

@lizboccolini
What's your OS? While I cannot repeat that on OS X, these could be OS related problem in @SBoudrias/Inquirer.js (the lib behind dynamic list in yo)

@lizboccolini
Copy link

Windows 10

@peterblazejewicz
Copy link
Member

@lizboccolini Thx, again, as work around try different shell terminal, for example I've been using PowerShell instead of Bash on Windows. Also: are you able to select any item just by typing 'yo' in terminal? (you should be offered a list of installed generators as default Yo action)

@lizboccolini
Copy link

Using PowerShell solved it. Thank you!

@ghost
Copy link

ghost commented Mar 29, 2018

Keypress doesn't work in Git Bash for me. But it works fine with ConEmu64 (https://conemu.github.io/) on Windows 10.

@peterblazejewicz
Copy link
Member

We are shutting this repo down, it's been replaced with dotnet new.

Thanks!

@sayedihashimi
Copy link
Member

We are shutting this repo down, it's been replaced with dotnet new.

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

No branches or pull requests