-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Again "json-server module not found" #1500
Comments
I have a similar error. Let me put the error first:
In my project, I use then use and then create and use then I finally use package.json code
I'm sure I install the latest version json-server and json-server-auth, How can I make sure it finds module 'json-server'? |
Looks like there is an issue in alpha version. I can able to run normally using json-server@^0.17.3 |
Can confirm, it works on 0.17.4 but not on the latest release |
This issue exists for me also. |
Да, проблема в версии. npm i [email protected] - решение |
Confirm, doesn't work with version 1.0.0-alpha.23 |
Correct. This issue is existing with the latest version. It does not there in "0.16.3". |
Any ETA on fixing? It's great to have paging and sorting already done by json-server |
Tool feels to be if not abandoned then not under active development. So probably would need forking or something. |
doesn't work with version "^1.0.0-alpha.23", I use "0.17.4" version is OK |
just spent 3 hours debugging this just to find out it was the version issue. Thank you so much for the answer |
It happened with me also, it works properly with json-server@^0.17.4 and before versions but not on alpha versions. So i would recommend to use json-server@^0.17.4 versions |
I'm also having exactly the same Issue , Should we just Downgrade our json-server-auth ? whould it be enough to solve the problem???? |
What about my json-server-auth ? which version of it should i install ?? |
Yes downgrade and use json-server@^0.17.4 versions. It will work absolutely without any problem with node |
Thanks a lot @prasannabiswas , I did it and the problem is solved 😊 |
the solution is install the version "json-server": "^0.17.3", using pnpm i json-server@^0.17.3 or npm |
Confirming, it doesn't work with v^1.0.0-beta.1 as well. |
Confirming, it doesn't work with v^1.0.0-beta.2 as well. |
Version 1.0.0-beta.3 doesn't work either. After changing to 0.17.4v, it worked |
echoing the others, 1.0.0-beta.3 is still broken. 0.17.4 is the way |
I am trying to follow one older tutorial: https://www.journeytoawebapp.com/posts/local-mock-server-with-node
Fresh repository I copy-pasted the code:
I did
npm install json-server
and I have this:But when I try to run the code with
node server.js
:My root:
My node_modules:
My NODE_PATH is empty (in case it's relevant):
The text was updated successfully, but these errors were encountered: