question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Error on Add @nguniversal/express-engine to my project, giving the error " Package install failed, see above."

See original GitHub issue

šŸž Bug report

What modules are related to this issue?

  • builders
  • common
  • express-engine

Is this a regression?

Iā€™m working with 2 projects. 1 of them, yes (Iā€™m using version 12)! Another no, but Iā€™m working with last version of angular (version 13)!

Description

I try to add the package to my project, but I have many erros messages and, in the end, Iā€™ve ā€œPackage install failed, see above.ā€

šŸ”¬ Minimal Reproduction

Iā€™m having a problem to run ng add @nguniversal/express-engine in project https://github.com/leonardon397/prova-ecommerce-faculdade-av1 (Thatā€™s in portuguese. Thatā€™s my collegeā€™s work, that replaces the exam). I didnā€™t found ansers or solutions for this issue, on StackOverflow and anothers forums or blogsā€¦ I tried to run ng add @nguniversal/express-engine --force and ng add @nguniversal/express-engine --legacy-peer-deps, as suggested in output, but I had same error.

šŸ”„ Exception or Error

[leonardo@fedora (branch main *%)] - ~/Projects/prova-ecommerce-faculdade-av1
$ ng add @nguniversal/express-engine@next
ā„¹ Using package manager: npm
āœ” Package information loaded.

The package @nguniversal/express-engine@next will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: prova-ecommerce-faculdade-av1@0.0.0
npm ERR! Found: @angular/animations@13.3.4
npm ERR! node_modules/@angular/animations
npm ERR!   peerOptional @angular/animations@"13.3.4" from @angular/platform-browser@13.3.4
npm ERR!   node_modules/@angular/platform-browser
npm ERR!     peer @angular/platform-browser@"13.3.4" from @angular/forms@13.3.4
npm ERR!     node_modules/@angular/forms
npm ERR!       peer @angular/forms@"^13.0.0" from ngx-bootstrap@8.0.0
npm ERR!       node_modules/ngx-bootstrap
npm ERR!         ngx-bootstrap@"^8.0.0" from the root project
npm ERR!       1 more (the root project)
npm ERR!     peer @angular/platform-browser@"13.3.4" from @angular/platform-browser-dynamic@13.3.4
npm ERR!     node_modules/@angular/platform-browser-dynamic
npm ERR!       @angular/platform-browser-dynamic@"~13.3.0" from the root project
npm ERR!     2 more (@angular/router, the root project)
npm ERR!   peer @angular/animations@"^13.0.0" from ngx-bootstrap@8.0.0
npm ERR!   node_modules/ngx-bootstrap
npm ERR!     ngx-bootstrap@"^8.0.0" from the root project
npm ERR!   1 more (the root project)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @nguniversal/express-engine@"13.1.0-next.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @angular/animations@13.3.5
npm ERR! node_modules/@angular/animations
npm ERR!   peer @angular/animations@"13.3.5" from @angular/platform-server@13.3.5
npm ERR!   node_modules/@angular/platform-server
npm ERR!     peer @angular/platform-server@"^13.1.0" from @nguniversal/express-engine@13.1.0-next.1
npm ERR!     node_modules/@nguniversal/express-engine
npm ERR!       @nguniversal/express-engine@"13.1.0-next.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/leonardo/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/leonardo/.npm/_logs/2022-04-30T19_57_00_389Z-debug-0.log
āœ– Package install failed, see above.

šŸŒ Your Environment

[leonardo@fedora] - ~
$ neofetch
             .',;::::;,'.                leonardo@fedora 
         .';:cccccccccccc:;,.            --------------- 
      .;cccccccccccccccccccccc;.         OS: Fedora Linux 35 (KDE Plasma) x86_64 
    .:cccccccccccccccccccccccccc:.       Host: GA-78LMT-S2 
  .;ccccccccccccc;.:dddl:.;ccccccc;.     Kernel: 5.17.4-200.fc35.x86_64 
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.    Uptime: 9 hours, 47 mins 
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:.   Packages: 2711 (rpm), 7 (flatpak), 22 (snap) 
,cccccccccccccc;MMM.;cc;;WW::cccccccc,   Shell: bash 5.1.8 
:cccccccccccccc;MMM.;cccccccccccccccc:   Resolution: 1920x1080 
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc:   DE: Plasma 5.24.4 
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc;   WM: kwin 
ccccc:XM0';cccc;MMM.;cccccccccccccccc'   Theme: Breeze Dark [Plasma], Breeze [GTK2/3] 
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;    Icons: ePapirus-Dark [Plasma], ePapirus-Dark [GTK2/3] 
ccccc;0MNc.ccc.xMMd:ccccccccccccccc;     Terminal: konsole 
cccccc;dNMWXXXWM0::cccccccccccccc:,      Terminal Font: FiraCode Nerd Font Mono 13 
cccccccc;.:odl:.;cccccccccccccc:,.       CPU: AMD Athlon II X2 250 (2) @ 3.013GHz 
:cccccccccccccccccccccccccccc:'.         GPU: AMD ATI Radeon 3000 
.:cccccccccccccccccccccc:;,..            Memory: 6547MiB / 7818MiB 
  '::cccccccccccccc::;,.
                                                                 
                                                                 


[leonardo@fedora] - ~
$ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / ā–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 13.3.3
Node: 16.15.0
Package Manager: npm 8.5.5
OS: linux x64

Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1303.3 (cli-only)
@angular-devkit/core         13.3.3 (cli-only)
@angular-devkit/schematics   13.3.3 (cli-only)
@schematics/angular          13.3.3 (cli-only)
    
[leonardo@fedora] - ~
$ npm --version
8.5.5
[leonardo@fedora] - ~
$ node --version
v16.15.0
[leonardo@fedora] - ~
$ yarn --version
1.22.18

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Jun 7, 2022

Thanks for reporting this issue. Luckily, it has already been fixed in one of the recent releases. Please update to the most recent version to resolve the problem.

If the problem persists in your application after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use ng new repro-app to create a new project where you reproduce the problem.

0reactions
angular-automatic-lock-bot[bot]commented, Jul 8, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Solve the Angular NPM Error - C# Corner
The error in NPM, 'error package install failed, see above', can occur when the user creates a new project in Angular using Node.js...
Read more >
Error for ng add @nguniversal/express-engine@next
This issue is solved by removing the @nguniversal packages from node_modules and reinstall again. Remove @next in the command, because onlyĀ ...
Read more >
Angular-cli installs but doesnt start new project: package ...
The error is: Package install failed, see above. Thinking angular-cli reinstall must have fiddled something, I again installed node-pre-gyp andĀ ...
Read more >
Server-side rendering (SSR) with Angular Universal
This means that the application generally renders more quickly, giving users a chance to view the application layout before it becomes fully interactive....
Read more >
The Schematic workflow failed. See above Package install ...
Package install failed, see above. ... See above.Angular error create angular project. ... Your browser can't play this video.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found