Symptom
When creating a release for Commerce release with Composable Storefront, the build fails with following log messages in the build log:
| INFO d.h.c.e.NpmrcGenerator [main] Repository spartacus-... in known, url: https://73554900100900004337.npmsrv.base.repositories.cloud.sap Exception in thread "main" java.io.UncheckedIOException: Could not generate npmrc file at de.hybris.ccv2.executor.NpmrcGenerator.generate(NpmrcGenerator.java:74) at de.hybris.ccv2.jsapps.JsAppBuilder.buildApplication(JsAppBuilder.java:83) at de.hybris.ccv2.jsapps.task.BuildJsAppsTask.process(BuildJsAppsTask.java:101) at de.hybris.ccv2.Builder.runTask(Builder.java:284) at de.hybris.ccv2.Builder.lambda$runTasks$5(Builder.java:251) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at de.hybris.ccv2.Builder.runTasks(Builder.java:246) at de.hybris.ccv2.Builder.runTasksAndHandleException(Builder.java:224) at de.hybris.ccv2.Builder.run(Builder.java:103) at de.hybris.ccv2.Builder.main(Builder.java:57) Caused by: java.nio.file.NoSuchFileException: /opt/workspace/build/customer-project/js-storefront/FOLDER_NAME/.npmrc at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218) at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484) at java.base/java.nio.file.Files.newOutputStream(Files.java:228) at java.base/java.nio.file.Files.write(Files.java:3512) at de.hybris.ccv2.executor.NpmrcGenerator.generate(NpmrcGenerator.java:66) ... 10 more |
The js-storefront/manifest.json has required values for applications (name and path) specified properly and the FOLDER_NAME is the same like in the thrown exception.
|
**************************************************************************************************** **************************************************************************************************** |
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
Composable Storefront build, .npmrc, Javascript Manifest , KBA , CEC-SCC-CLA-BUI , Build Process , CEC-SPA , SAP Commerce Cloud Spartacus , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview