Little tweaks to make it work... In a devcontainer anyway....
This commit is contained in:
31
.devcontainer/postCreateCommand.sh
Executable file
31
.devcontainer/postCreateCommand.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user