Gourav Gangwar
Gourav Gangwar

Reputation: 1

when I running a command in angular project than show error

ng add @nguniversal/express-engine

show error-

Skipping installation: Package already installed Schematic input does not validate against the Schema: {} Errors:

  Data path "" should have required property 'clientProject'.

Upvotes: 0

Views: 511

Answers (2)

Gagan V
Gagan V

Reputation: 126

You have add project name with the above command. Something like below:

ng add @nguniversal/express-engine --clientProject  <Project Name>

Upvotes: 0

Anshita Singh
Anshita Singh

Reputation: 1884

The issue is generally because of a version mismatch in your package.json file.

When I had faced this issue that time problem with one of my package "@angular-devkit/build-angular", and when I have changed "@angular-devkit/build-angular": "^0.800.2" to "@angular-devkit/build-angular": "~0.7.0".

Then I ran the command npm install after deleting node_modules.It was working fine

Upvotes: 2

Related Questions