Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

使用angular-in-memory-web-api 0.6.0导致http请求返回Status:500 internal server error #298

@ChristinaLy

Description

@ChristinaLy

注意:新版本文档位于aio分支下,master分支下是老版本的文档。

对于错别字或明显的语法错误,建议直接发 PR(在content目录下相应的文件上直接编辑,保存时就会自动变成PR)。

出错的URL:

错误的内容(请拷贝进来一份精确的出错文本,以便我定位):

从 npm 中安装这个内存 Web API 包(译注:请使用 0.5+ 的版本,不要使用 0.4-)
npm install angular-in-memory-web-api --save

问题表现为:
使用上述命令,默认会安装最新版本(0.6.0)的angular-in-memory-web-api,导致使用过程中出现http请求返回错误码500: Internal server error。如图
internal-server-error

解决方法:
安装版本0.5.4之后回复正常
npm install angular-in-memory-web-api@0.5.4 --save

建议的修改方式(可选):
在doc里面译注加上不可以使用angular-in-memory-web-api@0.6.0,如图
position

英雄留名(会出现在鸣谢清单中,默认使用你的github id):

感谢您的贡献。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions