typicode / json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Other
71.87k stars 6.93k forks source link

Issues with installing to non alpha version #1514

Closed Timofey-Makhankov closed 2 months ago

Timofey-Makhankov commented 4 months ago

I have been working on a json-server project. I have used a docker image to create the json-server and deploy it. recently, i had issues with my image. after some time, i figured out the problem. since using npm install / yarn add will always install the latest version, that i was using the alpha version of Json-server. I was able to resolve the issue by setting the stable verion of json-server "0.7.4".

The reason why i have opened the issue is that, i wanted to ask, if you can set the stable version to be "0.7.4" in the npm registry. you could still be able use alpha verions by setting it yourself. example: "yarn add json-server@version". In the future of course, you can set it to the stable verion of "1.x"

textbook commented 3 months ago

This could be done by running npm dist-tag add json-server@0.17.4 latest with publishing rights (see https://stackoverflow.com/q/67813980/3001761, https://docs.npmjs.com/cli/v10/commands/npm-dist-tag).

textbook commented 2 months ago

Completed? https://www.npmjs.com/package/json-server?activeTab=versions says latest is still alpha.23.

Timofey-Makhankov commented 1 month ago

Know I see the Problem.

Sry for confusing you, because I set the Issue as "completed". I just wanted to close the Issue since it is not a problem anymore. Thanks for the help