


Swagger Editor Download Latest Version
If not, can you please try with all one by one. Try for few more time or sometime http-server command without swagger works.In one of the machine, the default url was appended with extra slashes causing 404 error likeThe other good option could be not to use -o option while starting http-server and wait for few seconds to run editor on browser.Feel to reach me if any issue, i will try my best to answer asap.I hope you have tried all different options mentioned in the article. If 8080 is in use in you machine, then force http-server to start at another port using -p xxxx option.For first few time you can get blank page with 404 error. The first one i found that http-server runs on default 8080 port. “C:\NODE_INSTALLED_DIR\nodejs”After nodejs installation, open new nodejs command prompt and prefebly close the one opened.Run following command to install npm dependencyIf any issue or error installing npm , reinstall node and then try to install npm again.This is not mandatory but could be useful when creating project from command prompt using swagger commands.Swagger docs site has given how to run swagger editor locally but it bit confusing, it’s confusing to me, not sure about other’s but have seen lots of guys asking the same question how to install and run it.Download latest version of Swagger-Editor from git-hub, current stable version is Swagger-Editor-v2.9.8To run editor tocally http server is needed and you can use http-server Node.js moduleRun the following command to install http-serverOnce http server installed, unzipped and copy the swagger-editor directory in http-server folder at – C:\Users\ urUserName\AppData\Roaming\npm\node_modules\http-serverIt should be like – http-server\swagger-editor\….-> http-server swagger-editor -o (-o will open the Editor into default browser)I got some issue running it. Once installed successfully, cross check the path variable updated with node installed location e.g.

