Skip to content
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

bug: start fails on node 10 with error message requiring node 4 or latest #787

Closed
NoNameProvided opened this issue May 29, 2018 · 4 comments

Comments

@NoNameProvided
Copy link

When I try to run the json-server command, it exits with the following error message:

json-server requires at least version 4 of Node, please upgrade

My node version is v10.2.1 and I dont have any node version manager installed (nvm, etc.).

@typicode
Copy link
Owner

Hi @NoNameProvided,

There's a critical bug with please-upgrade-node and Node 10 (I've deprecated the versions containing this bug).

If you install json-server v0.12.2, it should fix the error.

@mateja176
Copy link

In addition to @typicode's answer, with json-server@^0.12.0 ( which satisfies json-server@0.12.2 ) the issue was still present. However running npm i json-server@latest updated package.json to

  "json-server": "^0.15.0",

Solving the problem.

@soumenkundu
Copy link

In addition to @typicode's answer, with json-server@^0.12.0 ( which satisfies json-server@0.12.2 ) the issue was still present. However running npm i json-server@latest updated package.json to

  "json-server": "^0.15.0",

Solving the problem.

Thanks. It solved my issue. My node version is 12.13.1

@tolgakurtulus
Copy link

You need to write terminal. npm i json-server@v0.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants