Comments (1)
应该是配置文件没弄好。
需要把host也配置上。
// .easy-mock.js 配置文件
{
host: 'http://localhost:8080/', // easy-mock的源,没有本地部署的话不用写,本地部署则填本地服务地址
output: "../", // 生成 API 的基础目录
template: "../", // 指定模板,这里用本地写的模板
projects: [ // 可以有多个模板来源
{
"id": "你要创建的 Easy Mock 项目的 id", // 刚刚记下来的 Project ID
"name": "api" // 生成的output目录下的文件名
}
]
}
from easy-mock-cli.
Related Issues (11)
- init命令报错 HOT 3
- 请教下、下载了项目 我怎么基于这个项目进行运行啊?
- 使用easymock-cli时执行命令 easymock init . 报socket hang up 。 nodejs 为v8.15 HOT 1
- easy-mock-cli · connect ECONNREFUSED 127.0.0.1:80
- 生成api文件夹之后怎么使用 HOT 4
- easymock init --> easy-mock-cli · { error: 'Internal Server Error' } HOT 12
- easymock每次都重新下载模板 HOT 1
- easymock init时报错 HOT 3
- projects配置项, 当id重复时, 可否都生成, 而不是只生成第一个 HOT 1
- easy-mock-cli · $$.joinUrl is not a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easy-mock-cli.