最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Terminal not receiving JSON-Server requests when npx json-server -w db.json is used - Stack Overflow

programmeradmin2浏览0评论

I am a newbie to JSON so I am still figuring out what it's all about. In the course I am taking on YT, they use the command npx json-server -p 3500 -w data/db.json in the terminal to install json server to the project. In theory this is supposed to allow me to get requests in the terminal as well when I refresh the localhost page. Is there a step I am missing?? Anything I still need to install? I have node.js and npm installed already. This is my terminal window

I am trying to get something like this in which i can see the requests posted in the terminal at the very end. I have tried installing globally and locally instead using npm command instead of npx, however not even that worked.

发布评论

评论列表(0)

  1. 暂无评论