AEM as a Cloud Service フロントエンドパイプラインで BUILD_NPM_AUDIT_ERROR を解決する方法
フロントエンドパイプラインの最初の実行が内部エラーで失敗します。 この記事に記載されているドキュメントの説明に従って、Adobe Experience Manager プロジェクトコードから 2 つのノードを削除します。
説明 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
ドキュメントの説明に従って、AEM プロジェクトコードから次の 2 つのノードを削除します [ 1]。
- /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.次の 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