I tried again with Swagger UI 3.0.5, but I'm still having problems. I was 
able to take a dist directory from a downloaded tar and put that on my 
server. It worked, I was able to access the petstore example from it.

But when I install with npm there are many files missing in my 
node_modules/swagger-ui/dist directory. 

Is there something broken with installing with npm?

Also, if I should be using public/index.html rather than dist/index.html, 
the 3.0.5 tar doesn't have a public directory in it.

Thanks,
Andrea

On Monday, March 27, 2017 at 5:11:40 PM UTC-7, Feorlen wrote:
>
> I'm trying to get swagger-ui 3.0.2 working in my environment, after using 
> 2.2.10. I've been installing with npm and then copying the contents of the 
> swagger-ui/dist dir from my node_modules to a location that's accessible 
> from the web.
>
> Now, I think, I'm supposed to get both /dist and /public? But 
> node_modules/swagger-ui doesn't have a /public dir when I install the 
> package. There's no index.html in dist either. I see them in the repo, but 
> not when I install with npm. There were previously a whole bunch of files.
>
> What files and directories should I be copying to my server? Is there a 
> different npm package?
>
> Here's what I have:
>
> -rw-rw-r-- 1 feorlen feorlen 5339 Mar 19 19:31 README.md
>
> -rw-rw-r-- 1 feorlen feorlen  589 Mar 19 19:31 LICENSE
>
> drwxrwxr-x 2 feorlen feorlen 4096 Mar 27 16:46 dist
>
> -rw-rw-r-- 1 feorlen feorlen 6589 Mar 27 16:46 package.json
>
> drwxrwxr-x 3 feorlen feorlen 4096 Mar 27 16:47 node_modules
>
> and the only thing in node_modules is lodash.
>
> Thanks.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to