32 lines
874 B
Bash
Executable File
32 lines
874 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Setting up PfosiLooking monorepo dependencies..."
|
|
echo "Using Node version: $(node --version)"
|
|
|
|
# Install root dependencies first
|
|
echo "Installing root dependencies..."
|
|
npm install
|
|
|
|
echo "Installing backend dependencies..."
|
|
cd backend && npm install
|
|
cd ..
|
|
|
|
echo "Installing app dependencies (Ionic 3 with legacy packages)..."
|
|
cd app
|
|
|
|
# For Node 14 and older Ionic 3 projects, we need special handling
|
|
echo "Installing with legacy peer dependencies support..."
|
|
if npm install --legacy-peer-deps; then
|
|
echo "App dependencies installed successfully!"
|
|
else
|
|
echo "Standard install failed, trying alternative approach..."
|
|
# Try with force flag as last resort for very old packages
|
|
npm install --legacy-peer-deps --force
|
|
fi
|
|
|
|
cd ..
|
|
|
|
echo "All dependencies installed successfully!"
|
|
echo "You can now start development with: npm run dev:all"
|