cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

By default, the node_modules will not be included into the content during the mbt build process. Whether there are some setting to force the mta to include the node_modules? As our project need to change some files after do the normal npm install'.

One trick I can figure out is that: we rename the "node_modules" to another name, and in the "start" script we build a softlink.

View Entire Topic
Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes
lucky.li

Node Modules will consume high storage and what is the puropose and advantage of having node modules into cf app directory ??

lucky_li
Associate
Associate
0 Likes

Our use case is special. We use the Ghost CMS solution and you can get the the install process from https://ghost.org/docs/install/local/. In short, it will first install "ghost-cli", then use the installed application to do the install. The install process is very very slow. We tested it in the ali-cloud and found that it will fail due to the "timeout" error. And another reason is that we need to do some code change based on the installed library.

So we need to store the node_modules into the githhub and include it into the mta during the build process.