我已经在Windows中使用npm安装了json-server。现在,当我尝试从Windows命令提示符运行json-server命令时,我得到这个错误:json-server is not recognized as an internal or external command, operable program or batch file.
有谁有关于这里需要修改的信息吗?
发布于 2019-05-16 22:54:42
试试这个(5.2.0以后的npm版本):npx json-server db.json
发布于 2021-01-02 18:07:51
之后,您的服务器应该在http://localhost:3000/posts上运行
https://stackoverflow.com/questions/54442398
复制相似问题