如何在AEM as a Cloud Service前端管道中解决BUILD_NPM_AUDIT_ERROR
前端管道的首次执行失败并出现内部错误。 按照本文提供的文档中所述,删除Adobe Experience Manager项目代码中的两个节点。
描述 description
环境
Adobe Experience Manager as a Cloud Service (AEMaaCS)
问题/症状
前端管道的第一次执行失败并出现内部错误。
错误消息:
Cloud Manager an internal error during the fast front-end pipeline deployment. If this recurs, please encounter Adobe Support.
build.log中存在BUILD_NPM_AUDIT_ERROR。
build.log:
01:23:34.567 [ main] INFO c.a.p.e.s.b.s.CommandLineServiceImpl - Executing command npm --progress false audit --production --audit-level=critical
01:23:34.567 [ main] INFO c.a.p.e.s.b.s.CommandLineServiceImpl - Running: [ npm, --progress, false, audit, --production, --audit-level=critical]
npm ERR! Cannot read property 'jquery' of undefined
npm ERR! A complete log of this run can be found in:npm ERR! /root/.npm/_logs/1234-56-78T91_23_45_678Z-debug.log01:23:34.567 [ main] DEBUG c.a.p.e.s.b.s.w.AbstractBuildWorkflowService - Storing the default errorCode BUILD_NPM_AUDIT_ERROR for step build on repo <site-name>01:23:34.567 [ main] INFO c.a.p.e.s.b.s.w.NpmBuildWorkflowService - Build and scan pipeline interrupted due to IOException!org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
本文介绍如何解决此问题。
解决方法 resolution
按照文档[ 1]中的说明,删除AEM项目代码中的以下两个节点:
- /conf/
<site-name>/sling:configs/com.adobe.aem.wcm.site.manager.config.SiteConfig - /conf/
<site-name>/sling:configs/com.adobe.cq.wcm.core.components.config.HtmlPageItemsConfig
前端管道使用已部署主题的包名称更新SiteConfig节点,但如果包名称和SiteConfig设置不同,前端管道将失败。
详情如下:
步骤 1. 检查位于以下路径的.content.xml文件:
/ui.content/src/main/content/jcr_root/conf/appId/_sling_configs/
步骤 2. 删除两个节点定义:
SiteConfig:
<com.adobe.aem.wcm.site.manager.config.SiteConfig
jcr:primaryType="nt:unstructured"
siteTemplatePath="/libs/wcm/core/site-templates/aem-site-template-stub-2.0.0"
themePackageName="${appId}"/>
HtmlPageItemsConfig:
<com.adobe.cq.wcm.core.components.config.HtmlPageItemsConfig
jcr:primaryType="cq:Page">
・・・
</com.adobe.cq.wcm.core.components.config.HtmlPageItemsConfig>
步骤 3. 在Cloud Manager中重新运行前端管道。
作为步骤3的结果,AEM将正确重新创建这些配置节点。 该管道随后应该会成功。
[ 1]正在启用前端管道
有关更多详细信息,请访问以下链接启用前端管道
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f