Generators are only available for ionic 2 projects message while creating new page in ionic

I want to add new page to my project.
but I am getting the following message:
Please hep me with this.

  1. You have an Ionic v1 project.
  2. Generators are only available for v2+ projects.
  3. You can’t generate stuff for v1 projects with the generators that are only available for v2+ projects.

The error has been resolved.
Thanks

How? Maybe your solution can help someone else in the future.

Sure,
I ran the following command:

npm install -g cordova ionic@beta

in the command line outside the project folder.

Thank you.

You can also refer to the link:


for further details.