Comments (4)
这坑也太多了,经过头铁找资料尝试,可以找到node_modules/restc/faas/index.html
,然后注释掉
<script src="https://github.elemecdn.com/highlightjs/cdn-release/9.8.0/build/highlight.min.js"></script>
在下面粘贴上
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/languages/go.min.js"></script>
重新启动即可,亲测好用。
from easy-mock.
出现这个问题主要原因是 restc 包更新了,现在restc使用的所有路径前面都有shadow这个字样,具体的请看文件:
restc首页文件源码
那么临时解决方案: 你进入你的容器 吧node_modules下的restc的faas下的index.html中的所有路径按照restc最新路径替换,然后偶重新编译。
指南:
- sudo docker exec -it -u root 容器名 /bin/bash
- apt-get update
- apt-get install vim -y
- vim node_modules下的faas/index.html 替换路径为正确的url
- npm build
- 推出容器后重启容器
如果想从根解决 你得更新restc的版本后重新编译easymock生成你的容器。
祝好!
from easy-mock.
出现这个问题主要原因是 restc 包更新了,现在restc使用的所有路径前面都有shadow这个字样,具体的请看文件:
restc首页文件源码那么临时解决方案: 你进入你的容器 吧node_modules下的restc的faas下的index.html中的所有路径按照restc最新路径替换,然后偶重新编译。
指南:
- sudo docker exec -it -u root 容器名 /bin/bash
- apt-get update
- apt-get install vim -y
- vim node_modules下的faas/index.html 替换路径为正确的url
- npm build
- 推出容器后重启容器
如果想从根解决 你得更新restc的版本后重新编译easymock生成你的容器。
祝好!
非常感谢,解决了我的问题!
from easy-mock.
不用辣么麻烦,更新一下package.json
中的restc包:"restc": "^0.3.0",然后删除node_modules,重新 npm install
from easy-mock.
Related Issues (20)
- 公司内网部署,很多网址被屏蔽导致无法访问,需要如何解决 HOT 7
- [ioredis] Unhandled error event: Error: connect ETIMEDOUT
- mock服务搬到个人服务器上了 在线分流 mock.51y.cc:81 HOT 6
- 不能正常返回指定数目的数组元素 HOT 2
- 项目是不是不维护了啊
- 【工具分享】如果有从 easy-mock 导出的 zip 文件,可以使用这个工具来快速启动本地 mock 服务
- easy mock官网咋又502了,正在测试模拟数据呢 HOT 1
- http://em.sucaidaohang.com/ 分流easy-mock HOT 4
- easy-mock访问不了了 HOT 2
- 如何返回一个非200的状态,譬如400、500
- 有偿提供安装指导
- 帮助分流 https://mock.feup.cn 支持 https,每天自动备份数据,保障数据安全。
- 同步swagger提示证书过期
- 技术要求太高了。入门即放弃系列 HOT 6
- Assertion `(argc) == (4)' failed HOT 1
- 使用mock.js中的increment存在问题
- [nodemon] app crashed - waiting for file changes before starting
- docker安裝各种报错 HOT 2
- post方法如何加入请求参数 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.