endif()
if(need_install)
- message(STATUS "UI: running npm install")
+ message(STATUS "UI: running npm ci")
execute_process(
- COMMAND ${NPM_EXECUTABLE} install
+ COMMAND ${NPM_EXECUTABLE} ci
WORKING_DIRECTORY "${WORK_DIR}"
RESULT_VARIABLE rc
ERROR_VARIABLE err
)
if(NOT rc EQUAL 0)
- message(STATUS "UI: npm install failed (${rc})")
+ message(STATUS "UI: npm ci failed (${rc})")
message(STATUS " stderr: ${err}")
return()
endif()
```bash
cd tools/ui
-npm install
+npm ci
```
### 2. Start llama-server
# Ensure node_modules are installed
if [ ! -d "tools/ui/node_modules" ]; then
echo "📦 Installing npm dependencies..."
- cd tools/ui && npm install && cd ../../
+ cd tools/ui && npm ci && cd ../../
fi
# Check and install git hooks if missing
# Check that node_modules exists
if [ ! -d "node_modules" ]; then
- echo "❌ node_modules not found. Run 'npm install' first."
+ echo "❌ node_modules not found. Run 'npm ci' first."
exit 1
fi
# Check that node_modules exists
if [ ! -d "node_modules" ]; then
- echo "❌ node_modules not found. Run 'npm install' first."
+ echo "❌ node_modules not found. Run 'npm ci' first."
exit 1
fi