cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Isuue installing SAP Commerce 2105 with Windows

chholzermsg
Participant
8,469

Hi,

I dowloaded the current version of SAP Commerce (CXCOMM210500P_1-70005661). When I try to install it on my Windows machine (using the cx recipe), I get an error during "initialize".

] The command failed: [exec] C:\projekte\commerce\hybris\bin\modules\smartedit\smartedittools\common\temp\pnpm-local\node_modules\.bin\pnpm install --no-prefer-frozen-lockfile --strict-peer-dependencies [exec] ERROR: Error: The command failed with exit code 1

It looks to me as if the node_modules" folder is not there.

Has anybody solved this issue?

Accepted Solutions (0)

Answers (3)

Answers (3)

NiveditaPDixit
Explorer

Had raised the issue with SAP support on Commerce 2105 patch 1 , below workaround provided by SAP support works fine for me , able to proceed with build and setup of Commerce.

  1. Change the pnpm version to 5.18.10 on "bin\modules\smartedit\smartedittools\common\config\rush.tpl.json";
  2. Delete .pnpm-store under your Windows $HOME;
  3. Trigger commerce build
0 Kudos

I tried replacing the pnpm version but still, I get the same Error

Let me know incase if I miss any

NiveditaPDixit
Explorer
0 Kudos

Worked fine for me , following the steps mentioned in my answer above. Is it installing 5.18.10 pnpm version ??

0 Kudos

I am getting the below error,

[exec] Copying "/APP/sap/hybris/bin/modules/smartedit/smartedittools/common/config/rush/pnpm-lock.yaml"

[exec] --> "/APP/sap/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-lock.yaml"

[exec] Copying "/APP/sap/hybris/bin/modules/smartedit/smartedittools/common/config/rush/pnpm-lock.yaml"

[exec] --> "/APP/sap/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-lock-preinstall.yaml"

[exec]

[exec] Checking installation in "/APP/sap/hybris/bin/modules/smartedit/smartedittools/common/temp"

[exec]

[exec]

[exec] Running "pnpm install" in /APP/sap/hybris/bin/modules/smartedit/smartedittools/common/temp

[exec]

[exec]

[exec] Linking local projects

[exec]

[exec] LINKING: @smart/utils [exec] [exec] ERROR: Internal Error: Cannot find installed dependency "@angular/animations"

[exec] in

[exec] "/APP/sap/hybris/bin/modules/smartedit/smartedittools/common/temp/node_modules/.pnpm/local/%2FAPP%2Fsap%2Fhybris%2Fbin%2Fmodules%2Fsmartedit%2Fsmartedittools%2Fcommon%2Ftemp%2Fprojects%2Futils.tgz_prettier@2.1.1/node_modules"

[exec] You have encountered a software defect. Please consider reporting the issue to

[exec] the maintainers of this application.

BUILD FAILED

/app/sap/hybris/bin/platform/build.xml:13: The following error occurred while executing this line: /app/sap/hybris/bin/platform/resources/ant/compiling.xml:75: The following error occurred while executing this line: /app/sap/hybris/bin/platform/resources/ant/compiling.xml:133: The following error occurred while executing this line: /app/sap/hybris/bin/platform/resources/ant/util.xml:13: The following error occurred while executing this line: /app/sap/hybris/bin/platform/resources/ant/compiling.xml:140: The following error occurred while executing this line: /app/sap/hybris/bin/platform/resources/ant/compiling.xml:269: The following error occurred while executing this line: /app/sap/hybris/bin/platform/resources/ant/util.xml:132: The following error occurred while executing this line: /app/sap/hybris/bin/modules/smartedit/smartedittools/buildcallbacks.xml:134: The following error occurred while executing this line: /app/sap/hybris/bin/modules/npm-ancillary/npmancillary/buildcallbacks.xml:460: The following error occurred while executing this line: /app/sap/hybris/bin/modules/npm-ancillary/npmancillary/buildcallbacks.xml:139: exec returned: 1 Total time: 3 minutes 15 seconds

NiveditaPDixit
Explorer
0 Kudos

The above error is not related to pnpm installation, it is related to angular .

Cannot find installed dependency "@angular/animations".

probably you already have angular installed and it is conflicting

you will find animations folder under node modules for angular which should will be installed .

bin\modules\smartedit\smartedittools\common\temp\node_modules\@angular

0 Kudos

I have not installed angular, but I have installed node v16.10.0 and npm 7.24.0

Still it's weird, any other thoughts to solve this issue

roman_sz
Explorer
0 Kudos

Please check with versions mentioned by Piotr Sztok in one of answers above.
Also please run that on non-patched 2105 version. We haven't succeded with 2105.1 version.

chkumar036
Explorer
0 Kudos

Hi Nivedita,

Changing the pnpm version to 5.18.10 ,this is enough and worked for me.

gaurav11
Participant
0 Kudos

Hi Christian,

Sometimes, problems with proxy configurations or firewall limitations might prevent packages from downloading. Make sure that the download of Node.js packages is not being restricted by your network or firewall settings.

Thanks,

chholzermsg
Participant
0 Kudos

One reason for this issue was that I had a node and pnpm already installed on my machine (from Visual Studio Code) and SAP Commerce installed a second version in parallel. Then everything got mixed up. But still the rushupdate does not work and I cannot find the reason.

My current solution is to remove everything related to "smart" from the build.gradle file in the cx recipe.