Search code examples
angularangular-standalone-components

Angular 16 Unknown argument: standalone


I'm starting a new project with Angular 16 for testing purposes. I decided to create a project with the standalone option, however, I get the following error when I execute the command "ng new todo-list-16 --standalone": error-img

These are my current settings, is anything missing?

ng-version


Solution

  • As you can see in your ng version, you have installed angular cli with version 14. If you want to generate angular with version 16, you first need to update your angular cli:

    npm install -g @angular/cli@16.2.8