cancel
Showing results for 
Search instead for 
Did you mean: 

Rush cannot run correctly after SAP Commerce Upgrade to 2105

janbu
Explorer
5,708

After updating our Instance to SAP Commerce 2105 (Patchlevel 2), the build fails in the Smartedittools step. It seems like the npm command it tries to run not works and there is not really an error message why it is not working. Output:

     [echo] Running [rush update] on path /home/user/hybris/bin/modules/smartedit/smartedittools
[exec]
[exec] Your version of Node.js (16.6.0) is not a Long-Term Support (LTS) release. These versions frequently have bugs. Please consider installing a stable release.
[exec]
[exec]
[exec] Rush Multi-Project Build Tool 5.50.0 - https://rushjs.io
[exec] Node.js version is 16.6.0 (pre-LTS)
[exec]
[exec]
[exec] Starting "rush update"
[exec]
[exec] Trying to acquire lock for pnpm-6.14.3
[exec] Acquired lock for pnpm-6.14.3
[exec] Installing pnpm version 6.14.3
[exec]
[exec] Deleting old files from /home/user/.rush/node-v16.6.0/pnpm-6.14.3
[exec] Transforming /home/user/hybris/bin/modules/smartedit/smartedittools/common/config/rush/.npmrc
[exec] --> "/home/user/.rush/node-v16.6.0/pnpm-6.14.3/.npmrc"
[exec]
[exec] Running "npm install" in /home/user/.rush/node-v16.6.0/pnpm-6.14.3
[exec]
[exec] The command failed:
[exec] npm install
[exec] ERROR: Error: The command failed with exit code 1
[exec]

Is there something I can do to make it work again? I have npm installed, but it seems like it uses a bundled version.

View Entire Topic
janbu
Explorer

I found the problem. Just in case someone has the same problem: In my case it was our Corporate Proxy (Zscaler) that causes the problem, because it intercepts all Traffic and NPM not used the System Certificate Store, so the connection was rejected.

The following command will add a certificate to the NPM Trust store. I added the Root-CA Certificate of Zscaler, that fixed the build:

export NODE_EXTRA_CA_CERTS=/path/to/custom/certificates/ZscalerRootCA.crt

This can also be added into the ~/.bashrc (or ~/.zshrc depending on the used shell) File.

Even am facing same error. where i have to run this command. Please provide clear path