diff --git a/pio-scripts/build_ui.py b/pio-scripts/build_ui.py index 047fac442..eb7a01b36 100644 --- a/pio-scripts/build_ui.py +++ b/pio-scripts/build_ui.py @@ -10,7 +10,7 @@ if node_ex is None: else: # Install the necessary node packages for the pre-build asset bundling script print('\x1b[6;33;42m' + 'Installing node packages' + '\x1b[0m') - env.Execute("npm install") + env.Execute("npm ci") # Call the bundling script exitCode = env.Execute("npm run build") @@ -18,4 +18,4 @@ else: # If it failed, abort the build if (exitCode): print('\x1b[0;31;43m' + 'npm run build fails check https://kno.wled.ge/advanced/compiling-wled/' + '\x1b[0m') - exit(exitCode) \ No newline at end of file + exit(exitCode)