我使用了以下的 Shell 腳本:
#!/bin/bash
for dir in \*/; do
 cd "$dir"
 if [ -f package.json ]; then
 rm -rf node\_modules
 npx ncu -u
 npm update
 fi
 cd ..
done
我使用了以下的 Shell 腳本:
#!/bin/bash
for dir in \*/; do
 cd "$dir"
 if [ -f package.json ]; then
 rm -rf node\_modules
 npx ncu -u
 npm update
 fi
 cd ..
done