File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -427,18 +427,18 @@ if [ -d /home/pi/webthings/gateway2 ]; then
427427 if [ " $totalk " -lt 600000 ]
428428 then
429429 echo " very low memory, --max-old-space-size=496"
430- NODE_OPTIONS=" --max-old-space-size=496" npx webpack
430+ NODE_OPTIONS=" --max-old-space-size=496" npm_config_yes=true npx webpack
431431 elif [ " $totalk " -lt 1200000 ]
432432 then
433433 echo " low memory, --max-old-space-size=750"
434- NODE_OPTIONS=" --max-old-space-size=750" npx webpack
434+ NODE_OPTIONS=" --max-old-space-size=750" npm_config_yes=true npx webpack
435435 elif [ " $totalk " -lt 2200000 ]
436436 then
437437 echo " normal memory, --max-old-space-size=1024"
438- NODE_OPTIONS=" --max-old-space-size=1024" npx webpack # --yes
438+ NODE_OPTIONS=" --max-old-space-size=1024" npm_config_yes=true npx webpack # --yes
439439 else
440440 echo " big memory, --max-old-space-size=2048"
441- NODE_OPTIONS=" --max-old-space-size=2048" npx webpack
441+ NODE_OPTIONS=" --max-old-space-size=2048" npm_config_yes=true npx webpack
442442 fi
443443
444444 if [ -f /home/pi/webthings/gateway2/build/app.js ] \
You can’t perform that action at this time.
0 commit comments