Closed ghost closed 6 years ago
I think the issue is that your package.json
is referencing an old version of the json-api library (v2), whereas this example repo, and the docs on the main json-api repo, are based on v3. Try upgrading to the latest v3 release and lmk if that fixes it.
@ethanresnick What do I need to change "json-api": "^2.16.5"
to?
I tried
$ npm install --save json-api@next
npm ERR! code ETARGET
npm ERR! notarget No matching version found for json-api@next
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
So what should I change my package.json to?
I did npm install --save json-api@3.0.0-rc.4.0.1
and now it seems to work fine.
The package.json looks like
"json-api": "^3.0.0-rc.4.0.1"
Glad to hear it
Tiny glitch project: https://glitch.com/edit/#!/discord-finder
I am trying to use this to make an API.
Going to e.g. https://discord-finder.glitch.me/api results in the error