Skip to content

Commit d3d4c2f

Browse files
Add files via upload
1 parent 0c77a97 commit d3d4c2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install_candle_controller.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 ] \

0 commit comments

Comments
 (0)