Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

SyntaxError: Invalid regular expression #315

Open
iHrushikesh opened this issue Oct 26, 2015 · 22 comments
Open

SyntaxError: Invalid regular expression #315

iHrushikesh opened this issue Oct 26, 2015 · 22 comments

Comments

@iHrushikesh
Copy link

I am getting below exception with the latest version. This is not happening with version 0.7.0

$ swagger project create helloworld
? Framework? (Use arrow keys)
> connect
  express
  hapi
  restify
  sails [SyntaxError: Invalid regular expression: /.{1,0}/: numbers out of order in {} quantifier.]
@dpurrington
Copy link

Same here.

@yzhaie
Copy link

yzhaie commented Feb 8, 2016

get same problem with 0.7.5

@rbperegrino
Copy link

Same here

@thedamphair
Copy link

Does anyone knows how to solve it yet?

@nakamorichi
Copy link

Same problem here with versions 0.7.3~0.7.5, no matter which Node version I try.

@nakamorichi
Copy link

Aa, I think I found the reason. I had installed Git with all the path modifications (using Windows 10), so it was probably messing up something. Uninstalled Git and the problem disappeared.

@TroyWhite
Copy link

I had this same issue with a fresh install of node and swagger. Looking around the net it seems other node projects have this issue and it is related to the console terminal's tty column width. After running "stty rows 50 cols 80" in the terminal I was using for swagger the "swagger project create hello-world" executed without errors. I'm guessing the problem is buried in some external node package that's shared by swagger and other projects which show this issue.

@at15
Copy link
Contributor

at15 commented Apr 19, 2016

I was using Git Bash on Windows10 with Node5.9.1 and it shows this error, after switched to windows CMD, the selection list can display, but using the arrow key won't move the selection.

@margothi
Copy link

margothi commented May 3, 2016

Workaround verification: doing this step in a standard windows 7 command line worked for me. Arrow keys for selection worked also.

@samavia
Copy link

samavia commented Oct 11, 2016

I had the same problem using Git Bash on Windows 10, problem solved when used Command line.

@badfun
Copy link

badfun commented Apr 11, 2017

Same issue. Windows 10 pro, Node 6.9.2. Using command line worked for me, git bash did not.

@mlabuda2
Copy link

same here. minGw throw error, CMD windows didnt

@morrisalp
Copy link

Win 10, Node v6.10.2, had this error in Babun and Git bash but it worked in Powershell.

@xiaoyi00112
Copy link

same here,

@ypmei
Copy link

ypmei commented Jul 3, 2017

same here

@vishalbhardwaj26
Copy link

Problem was on windows and
"swagger project create -f express file-name"

worked for me.

@mellodev
Copy link

mellodev commented Aug 3, 2017

Same issue with 0.7.5 on windows 10 with git bash shell. Switched to powershell and it works fine.

@NisalG
Copy link

NisalG commented Nov 21, 2017

Same error in Git Bash - Node v8.9.1 on Win 10
But works on Win Powershell

@eaglet3d
Copy link

Fails in Cygwin.

@SagarDeshnur17
Copy link

Fails in windows10 +gitBash.
Works with command prompt though.

@medazurreo
Copy link

Hello,
You need to launch command "swagger project create [project_name]" into a Node.js command prompt , it will allow you to choose your project's type in interactive mode.
Enjoy it.

@qiufeihong2018
Copy link

Aa, I think I found the reason. I had installed Git with all the path modifications (using Windows 10), so it was probably messing up something. Uninstalled Git and the problem disappeared.

I’m not think uninstall git !

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

No branches or pull requests