swagger-node icon indicating copy to clipboard operation
swagger-node copied to clipboard

SyntaxError: Invalid regular expression

Open iHrushikesh opened this issue 10 years ago • 22 comments

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.]

iHrushikesh avatar Oct 26 '15 19:10 iHrushikesh

Same here.

dpurrington avatar Dec 07 '15 16:12 dpurrington

get same problem with 0.7.5

yzhaie avatar Feb 08 '16 16:02 yzhaie

Same here

rbperegrino avatar Feb 12 '16 19:02 rbperegrino

Does anyone knows how to solve it yet?

thedamphair avatar Mar 02 '16 17:03 thedamphair

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

nakamorichi avatar Mar 13 '16 17:03 nakamorichi

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.

nakamorichi avatar Mar 13 '16 17:03 nakamorichi

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.

TroyWhite avatar Apr 14 '16 13:04 TroyWhite

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.

at15 avatar Apr 19 '16 10:04 at15

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

margothi avatar May 03 '16 10:05 margothi

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

samavia avatar Oct 11 '16 12:10 samavia

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

badfun avatar Apr 11 '17 02:04 badfun

same here. minGw throw error, CMD windows didnt

mlabuda2 avatar Apr 12 '17 20:04 mlabuda2

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

morrisalp avatar Apr 30 '17 11:04 morrisalp

same here,

xiaoyi00112 avatar Jun 21 '17 04:06 xiaoyi00112

same here

ypmei avatar Jul 03 '17 06:07 ypmei

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

worked for me.

vishalbhardwaj26 avatar Jul 13 '17 18:07 vishalbhardwaj26

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

mellodev avatar Aug 03 '17 23:08 mellodev

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

NisalG avatar Nov 21 '17 02:11 NisalG

Fails in Cygwin.

eaglet3d avatar Jan 29 '18 02:01 eaglet3d

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

SagarDeshnur17 avatar Jan 24 '19 02:01 SagarDeshnur17

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.

medazurreo avatar Sep 14 '19 17:09 medazurreo

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 !

qiufeihong2018 avatar Mar 06 '20 07:03 qiufeihong2018