Skip to content

Commit

Permalink
Remove MagicMirror npm package lockfile before installing
Browse files Browse the repository at this point in the history
  • Loading branch information
ron.record committed Jun 19, 2024
1 parent ae0d87b commit 19fd928
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions install_magicmirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ curl -sL https://deb.nodesource.com/setup_10.x 2> /dev/null | sudo -E bash - > /
sudo apt install -y nodejs > /dev/null 2>&1
git clone https://github.com/MagicMirrorOrg/MagicMirror > /dev/null 2>&1
cd MagicMirror
rm -f package-lock.json
npm run install-mm > /dev/null 2>&1
printf "\t\tDone\n"

Expand Down
1 change: 1 addition & 0 deletions pkg/debian/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ case "$1" in
if [ "${inst_npm}" ]
then
echo "Installing MagicMirror in /usr/local/MagicMirror"
rm -f package-lock.json
sudo -u ${USER} npm run install-mm > /dev/null 2>&1
else
echo "Unable to locate npm in the execution path."
Expand Down
2 changes: 2 additions & 0 deletions pkg/rpm/MirrorCommand.spec
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ GROUP=
if [ "${inst_npm}" ]
then
echo "Installing MagicMirror in /usr/local/MagicMirror"
rm -f package-lock.json
sudo -u ${USER} npm run install-mm > /dev/null 2>&1
else
echo "Unable to locate npm in the execution path."
Expand All @@ -93,6 +94,7 @@ GROUP=
echo ""
echo "cd /usr/local/MagicMirror"
echo "sudo -u ${USER} npm run install-mm"
echo "sudo -u ${USER} npm install electron@29.1.6"
echo ""
fi
}
Expand Down

0 comments on commit 19fd928

Please sign in to comment.