首页 > 系统服务 > 详细

Install Swagger on Ubuntu

时间:2016-03-10 12:08:36      阅读:223      评论:0      收藏:0      [点我收藏+]

Install npm

$ sudo apt-get install npm

$ sudo npm install npm –g  // upgrade npm to latest version

You may encounter the following error:

/usr/bin/env: node: No such file or directory

This is often a misnaming error, if you install from a package manager you bin may be called nodejs, so you just need to symlink it like so:

$ sudo ln -s /usr/bin/nodejs /usr/bin/node

Install Swagger

git clone https://github.com/swagger-api/swagger-editor.git
cd swagger-editor
npm start

If Swagger is started successfully, you can connect web server on http://localhost:8080.

Install Swagger on Ubuntu

原文:http://www.cnblogs.com/luckysimple/p/5261290.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!