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

SAP Commerce 2105.9 - ant npminstall is not creating node_modules folder in npm-ancillary

pratap_pandey
Explorer
1,468

npminstalllog.txtI am trying to enable custom smartedit extension on 2105. Found that "ant npminstall" is supposed to create node_modules folder in npm-ancillary extension and add all the dependencies. The above command on 2105.9 is resulting in successful build but its not creating the node_modules folder. I re installed node and npm but it results in same error. Attached is the log of "ant npminstall" command for reference.

Also, when trying to run "ant rushupdate", it shows error as "Running [rush update] on path NOT SET"

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member634058
Active Participant
0 Kudos

Hi Pratap,

If you check the buildcallbacks.xml file of npmancillary extension, you can find that npminstall macrodef has been deprecated. Instead we need to use rushupdate. And this will need a path as a parameter:

For example, ant rushupdate -Dpath=path_to_smartedittools

However, as far as I understand, it’s not necessary to run ‘Rush Update’ under each *smartedit extension explicitly. ‘smartedittools’ will detect all downstream *smartedit extension firstly and use ‘Rush update’ to install all dependency ,then distribute to each smartedit app as demand, finally ‘Rush build’ will invoke the build of each smartedit app. All above logic encapsulated under the ant build of smartedittools. If your custom smartedit extension changes are not reflected in d2 smartedit, you can check whether your-custom-smartedit.smartedittools.config=true in its project.properties, it will make smartedittools link your smartedit extension.

Thanks.

pratap_pandey
Explorer

Thanks sumit_haldar , Atleast i was able to proceed further following your comments but i am still not getting the Smartedit home page loaded. The JS console is showing 404 error while trying to load smarteditcommons and smarteditcontainer js files. The ant commands are working and i am not seeing any error in the logs. Attached is the screenshot of error page and logs of rush update command for reference.

ant-rushupdate-logs.txtscreen-shot-2022-06-13-at-81810-pm.png

0 Kudos

Hi Pratap, are you able to get those *.js & *Container.js generated files? Please share the steps.
Thanks