-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
TypeError: Cannot read property 'substring' of undefined #4018
Comments
Thanks for the issue! If you're reporting a bug, please be sure to include:
Requesting a new rule? Please see Proposing a New Rule for instructions. |
Are you using NPM 3 by any chance? Can you check your node_modules directory and find out what version of inquirer you are using? |
I'm using npm 2.14.3. Checked out the inquirer/package.json and this is the version, I think.
|
What is your OS? |
I guess it's an issue. I'm running Windows 10 Enterprise LTSB. |
I think this is a duplicate of #3395? |
Doesn't look like it. It's crashing all together, and #3395 describes an issue where the arrow selection is not possible. |
Updated to v1.6.0, same thing (knew that it still isn't fixed). Also, I forgot the line on the top. |
@TheEradicated I can't reproduce this locally on Windows 8 Professional or Windows 10 Professional. What version of Node are you using? Also, could you try blowing away node_modules directory under your eslint installation and running |
@ilyavolodin I have Node.js 4.1.0. Deleted the node_modules folder under node_modules/eslint directory, ran |
Same problem here on Win7 Home Premium SP1. $ eslint -v
v1.6.0
$ node -v
v4.1.1
$ npm -v
2.14.4 The stack:
Removed eslint and installed again, but the problem persists. |
OK, this is a known issue with inquirer and it's filed here: SBoudrias/Inquirer.js#272 |
@ilyavolodin I just tested in Windows Command Prompt and it works fine. The problem happens only when using terminal emulators like mintyy that comes with git for Windows. From Git for Windows FAQ:
I think the issue can be closed, but a feedback about it would be nice, like showing a message if |
I'll use eslint (through SublimeLinter) for Sublime Text 3. Does this mean once I run |
@TheEradicated Yes, if you use WIndows command prompt or powershell it should be fine. Bash for Git doesn't work (although it works for me personally for some reason). |
i try with cmd(windows) and work fine the command 'bower init' |
Freshly installed Eslint v1.5.1. When I run "eslint --init" for the first time, I get this.
The text was updated successfully, but these errors were encountered: