I’m confused by the fact that you say you want to upload something, yet then describe a command that is intended to change the build process. Ordinarily, the place you serve a PWA from is not the same place you build it.
So, let’s say alice
is the name of the host you are using for your development work on, and barbara
is the host where your PWA will be deployed from.
The first question is “are you trying to run that ng add
command on alice
or barbara
?”. If alice
, then personally I would recommend introducing alice
to Linux. Presumably you’re not going to be particularly responsive to that suggestion, so I guess you’ll need to wade through that Microsoft documentation that is included in your error message. It looks pretty comprehensive and relevant to your situation.
If you’re trying to run ng add
on barbara
, that’s weird. I would recommend not doing that, and instead running all build-related commands on alice
instead. I suppose this advice applies as well in the case where alice
and barbara
are the same machine: separate them and concentrate on the build environment, not the hosting environment.