kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 311 forks source link

Installation fails: cannot find @angular\cli\src\command-builder\utilities\schematic-engine-host.js #1872

Closed 0x4a61636f62 closed 1 year ago

0x4a61636f62 commented 1 year ago

Describe the bug

Installation fails with

PS C:\Users\user\Desktop\myproject> ng add apollo-angular
Node.js version v19.3.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/.
ℹ Using package manager: npm
⚠ Unable to find compatible package. Using 'latest' tag.
⚠ Package has unmet peer dependencies. Adding the package may not succeed.

The package apollo-angular@4.1.1 will be installed and executed.
Would you like to proceed? Yes
✔ Packages successfully installed.
Cannot find module 'C:\Users\user\Desktop\myproject\node_modules\apollo-angular\schematics\install\index'
Require stack:
- C:\Users\user\Desktop\myproject\node_modules\@angular\cli\src\command-builder\utilities\schematic-engine-host.js
PS C:\Users\user\Desktop\myproject> 

To Reproduce Steps to reproduce the behavior: npm i apollo-angular

Expected behavior

Should install without errors.

Environment:

- @angular/cli@15.0.3
- @angular/core@15.0.3
- apollo-angular@4.1.1
- typescript@4.8.4

Additional context

N/A

PowerKiKi commented 1 year ago

Duplicate of #1848