Reputation: 788
I'm trying to develop a front-end application and going to use JSON. This is my first time doing this so I tried to install 'json-server' to get a restful API so I can get the file with XMLHttpRequest, but when I try to install json-server with npm like this, sudo npm install -g json-server, is just say "/usr/bin/env: ‘node’: No such file or directory".
Anyone know how to fix it or any other Rest API you can recommend? I have looked at github's api, but I can not for the life of me understand how it works.
Thank you in advance.
Upvotes: 0
Views: 164