Create pwa but ng command not found

#1

Hello,
I am on ionic v4 beta and want to create my first pwa.
I created with ionic

ionic start myapp tabs --type=angular

I change with cd myapp into dir and want to create a service worker with

ng add @angular/pwa --project myapp

This fails with ng command not found.

If I do ionic serve then I see that ng is called from ionic serve and it starts into chrome.
I use nvm with node version 8.11.2 on a win64 machine

Any ideas, whats wrong, faulty, …

Best regards, anna-liebt

#2

Hello to myself and anyone how cares.

It seems that a globally installed angular cli is additional necessary to perform that ng add @angular/pwa --…
As long (hahaha) no negative effects are, than the warning that different versions are global and local installed, can ignored.

I hate this kind of things.

Best regards, anna-liebt

1 Like