forked from huggingfacer04/EMAD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean-install.sh
More file actions
35 lines (27 loc) · 798 Bytes
/
Copy pathclean-install.sh
File metadata and controls
35 lines (27 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Bash script to clean and reinstall dependencies with latest versions
echo "🧹 Cleaning up old dependencies..."
# Remove node_modules and lock files
if [ -d "node_modules" ]; then
rm -rf node_modules
echo "✅ Removed node_modules"
fi
if [ -f "package-lock.json" ]; then
rm -f package-lock.json
echo "✅ Removed package-lock.json"
fi
if [ -f "yarn.lock" ]; then
rm -f yarn.lock
echo "✅ Removed yarn.lock"
fi
# Clear npm cache
echo "🗑️ Clearing npm cache..."
npm cache clean --force
# Install with latest versions
echo "📦 Installing dependencies with latest versions..."
npm install
# Audit for vulnerabilities
echo "🔍 Running security audit..."
npm audit
echo "✅ Clean installation complete!"
echo "🚀 Ready to build the extension!"