首页 > 解决方案 > 如何解决 angular12 中的 nguniversal-express-engine 安装问题

问题描述

我正在尝试在我的 angular12 应用程序中安装@nguniversal/express-engine,但出现错误。我不知道为什么会收到此错误。如果有人知道,请帮助解决此问题。

Npm : = 7.5.4
Angular CLI: 12.2.5
Node: 14.17.6

错误:

> D:\Project\rkp>ng add @nguniversal/express-engine --clientProject projectname

> npm version 7.5.4 detected. When using npm 7 with the Angular CLI, npm
> version 7.5.6 or higher is recommended. i Using package manager: npm √
> Found compatible package version: @nguniversal/express-engine@12.1.0.
> √ Package information loaded.
> 
> The package @nguniversal/express-engine@12.1.0 will be installed and
> executed. 
  Would you like to proceed? Yes 
  npm ERR! code ERESOLVE npm
> ERR! Cannot destructure property 'name' of 'node' as it is null.
> 
> npm ERR! A complete log of this run can be found in: npm ERR!    
> C:\Users\admin\AppData\Local\npm-cache\_logs\2021-09-25T13_19_38_918Z-debug.log
> × Package install failed, see above.

标签: angulartypescriptangular-universalangular12

解决方案


推荐阅读