angular - 如何解决 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.
解决方案
推荐阅读
- playframework - 如何在生产中服务新的公共资产?
- ruby-on-rails - 无法解析创建方法中的参数(文件上传)
- laravel - 使用 Eloquent 检索关系的关系
- css - 如何在引导程序中保持两列相互重叠,另一列保持在右侧?
- java - 在单行代码片段中写入和关闭 BufferedWriter
- python - DataError: (pyodbc.DataError) ('String data, right truncation: length 6454 buffer 6452', '22001') [SQL: u'INSERT INTO
- matplotlib - 绘制带有误差和能量的 RA/DEC 的设施
- c# - 如何从多个 SELECT 语句中获取数据并将其存储在 DataSet 中
- java - EBike 可以是 Bike 的子类
- java - Java android快餐栏显示封面视图