cancel
Showing results for 
Search instead for 
Did you mean: 

The Sap App Bas Studio or Visual Studio is NOT GOOD

ptharso
Participant

Why the node modules repeat in each app that we created?? Its more 17000 archives X 5 app then equal 85000 archives in my pc. Why not only one node_modules to all the workspace of apps??? I dont believe!!!

gregorw
Active Contributor

Welcome to the world of npm.

Accepted Solutions (1)

Accepted Solutions (1)

joltdx
Active Contributor

Well, it is a good thought to save the space. But basically it's because each app is stand-alone in that perspective.

Not all apps require the same node modules and not all apps require the same versions of the node modules. In fact there are cases where you specifically need different versions for different apps.

Also, in this way, we can be sure that each app is developed consistently if there is only one app or 10 apps in total, with each of them separated.

Answers (3)

Answers (3)

ptharso
Participant
0 Kudos

I resolved in that way: i removed all node_modules leaving only ONE in directory WORKING.

So, i copy the files of an application to WORKING directory before delete the old content.

AND run the commands npm ( init, install and start ) and wow NOT more thousands of files node.js

ptharso
Participant
0 Kudos

I fully understand the reasons, but something has to be perfected. Copies and backups become too time consuming and control of the source code is already a big job. The modules to be imported and complementary to applications need to be stored internally in another region without having to participate in the structure of the sources. That's how I think.

YuvalA
Advisor
Advisor
0 Kudos

BAS and VSCode in this sense facilitates the application technology stacks with the required design-time needs, in this case, provision of the application defined dependencies needed for the Fiori application development.