I'm getting an error when I try to init a new ember project.
I just installed ember using this command: npm install -g ember-cli
then I ran: ember init to create my project, but it throws the following error:
WARNING: Node v20.10.0 is not tested against Ember CLI on your platform. We recommend that you use the most-recent "Active LTS" version of Node.js. See https://git.io/v7S5n for details. The
ember initcommand requires a package.json in current folder with name attribute or a specified name via arguments. For more details, useember help.

Any help you can provide would be appreciated!
There are two issues here, one if them minor and one catastrophic.
The minor issue is the warning about node version. Ember is telling you the version you have hasn't been tested for ember apps, and it is recommending you use the current node version thst is in active long-term support (LTS). The link in the message goes to a page that shows you what version of node you can safely use.
The major issue is that you're missing a
package.jsonfile, which describes your project and the libraries it needs. Normally,ember initautomatically creates this file.Some things to check:
ember initin an empty directoryIf all else fails, try running
npm initin that same directory (just hit return/enter for any questions it asks) and see if it gives you a meaningful error.