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