oneuptime/install-node-modules.sh

8 lines
221 B
Bash
Raw Permalink Normal View History

2023-02-08 20:40:06 +00:00
for d in */ ; do
cd $d || echo "Cannot cd into $d"
rm -rf node_modules || echo "node_modules directory not found $d"
npm install --force || echo "Cannot npm install $d"
cd .. || echo "Cannot cd out"
done