-
Notifications
You must be signed in to change notification settings - Fork 9k
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
cake dist is failing on windows 7 - Error: Command failed: 'node_modules' is not recognized as an internal or external command, operable program or batch file. #68
Comments
I haven't tries this on windows and node_modules folder is actually committed into the project for handlebars compilation. I wonder if this is something silly like using the windows path separator over here: https://github.com/wordnik/swagger-ui/blob/master/Cakefile#L6 Could you please check? |
The problem is with exec command https://github.com/wordnik/swagger-ui/blob/master/Cakefile#L41.
I also tried the same on cygwin and got same errors. Everything works fine on my MAC but doesnt work on windows |
Ayush - can you help me in fixing this |
Hey, I'll look at this summer more today and let you know. |
Ok, here is the deal:
|
Thanks for the fix. It fixed the path problem in cake file but introduced one more issue but this time I have a solution :-) The swagger-ui handlebar templates are only compatible with 1.0.5beta npm package version. There is no 1.0.beta.6 npm package available(the one swagger-ui included in npm_module). Details npm install handlebars -g - will install the latest version and swagger-ui handlebar template are not compatible. Hence we need to install 1.0.5beta version - npm install [email protected] -g. |
Can we delete https://github.com/wordnik/swagger-ui/tree/master/node_modules/handlebars as we are using globally installed npm package? |
Fixes Issue #68 in a generic way for any param with any regex
Fixes Issue swagger-api#68 in a generic way for any param with any regex
Using
nodejs - v0.8.11
coffee-script - latest
cake - latest
C:\Arjun\projects\swagger-ui>cake dist
path.existsSync is now called
fs.existsSync
.Build distribution in ./dist
: Reading src/main/coffeescript/SwaggerUi.coffee
: Reading src/main/coffeescript/view/HeaderView.coffee
: Reading src/main/coffeescript/view/MainView.coffee
: Reading src/main/coffeescript/view/ResourceView.coffee
: Reading src/main/coffeescript/view/OperationView.coffee
: Reading src/main/coffeescript/view/ParameterView.coffee
: Precompiling templates...
: Compiling src/main/template/main.handlebars
: Compiling src/main/template/operation.handlebars
: Compiling src/main/template/param.handlebars
: Compiling src/main/template/param_list.handlebars
: Compiling src/main/template/param_readonly.handlebars
: Compiling src/main/template/param_readonly_required.handlebars
: Compiling src/main/template/param_required.handlebars
: Compiling src/main/template/resource.handlebars
C:\Arjun\servicemesh\projects\swagger-ui\Cakefile:59
throw err;
^
Error: Command failed: 'node_modules' is not recognized as an internal or external command,
operable program or batch file.
The text was updated successfully, but these errors were encountered: