6

How to update the NodeJS version in application level on SAP Business Applicatio...

 1 year ago
source link: https://blogs.sap.com/2022/08/26/how-to-update-the-nodejs-version-in-application-level-on-sap-business-application-studio/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
August 26, 2022 2 minute read

How to update the NodeJS version in application level on SAP Business Application Studio

Hi All,

I was working on an application in SAP Cloud BAS where the existing application in SAP BAS throws an error while trying to run/execute the application where the error says that the updated Node JS version is unavailable why because BAS was using an older version of NodeJS.for resolving this issue I have updated the NodeJS version in application level by following the below steps.

Picture1-58.png

Error as shown in the below image:

Picture2-35.png

Steps for updating the Node JS Version:

To update the NodeJS version in the existing application, click on the view tab on the toolbar and find the command to get the application information.

Picture3-45.png

Here we can find the open app Info command by searching in the search bar as shown below image:

Picture5-38.png

Once we select the Open App Info command to get the list of applications which are existing in our space. Now we must choose the application we need to update the NodeJS version.

Picture6-31.png

Once we select the application, we get the application Information as shown in the below image:

Picture7-28.png

Here it is showing the existing installed NodeJS version as 1.3.5, click on the below-mentioned URL in order to update the NodeJS version to the latest version.

Sample URL – Run ‘npm install @sap/[email protected] –save-dev in terminal

Click on the URL to see the status of downloading the latest node modules in Application Moduler as shown below image:

Picture8-20.png

Here we can see the DEV space updated Node version by using the below command.

pic13.png

Once the Node Modules are downloaded successfully then it will be shown in the application Stats level (Latest Version node Modules are Installed) as shown in the below screen:

Picture9-14.png

Now we can run the application by clicking on directly in the preview Application tab or we can run it by selecting the preview application option while right click on the application.

Picture10-16.png
Picture11-14.png

Now application is running successfully with the latest node modules as shown in below image:

Picture12-14.png

Conclusion

Finally, we know how to check the node version and update the nodeJS version at the application level in SAP BAS.

Thanks,

Spandana Bollu,


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK