Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

hapi-engine requires hapi instead of @hapi/hapi as peer dependency #1969

@chrisguttandin

Description

@chrisguttandin

🐞 Bug report

What modules are related to this issue?

  • aspnetcore-engine
  • builders
  • common
  • express-engine
  • hapi-engine

Is this a regression?

Kind of. Since v7 npm will try to install peer dependencies and does not complete the installation if the peer dependencies can't be installed.

Description

hapi is deprecated and not maintained anymore. The package is now called @hapi/hapi.

🔬 Minimal Reproduction

npx @angular/cli new example # this needs to be done with npm@6 because it fails as well with npm@7
cd example
ng generate universal --client-project example
npm i npm@7 --global
npm i @nguniversal/hapi-engine

🔥 Exception or Error


npm WARN ERESOLVE overriding peer dependency
npm WARN Found: hapi@undefined
npm WARN node_modules/hapi
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer hapi@"^18.4.0" from @nguniversal/[email protected]
npm WARN node_modules/@nguniversal/hapi-engine
npm WARN   @nguniversal/hapi-engine@"*" from the root project
npm ERR! code ETARGET
npm ERR! notarget No matching version found for hapi@^18.4.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

🌍 Your Environment


Angular CLI: 11.1.2
Node: 12.20.1
OS: darwin x64

Angular: 11.1.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1101.2
@angular-devkit/build-angular   0.1101.2
@angular-devkit/core            11.1.2
@angular-devkit/schematics      11.1.2
@angular/cli                    11.1.2
@schematics/angular             11.1.2
@schematics/update              0.1101.2
rxjs                            6.6.3
typescript                      4.1.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions