Skip to content

Commit

Permalink
add .npmrc to make sure modules are installed correctly even if the u…
Browse files Browse the repository at this point in the history
…ser uses global node/npm to do it
  • Loading branch information
oznu committed Jul 2, 2022
1 parent e07db57 commit 5181560
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export npm_config_loglevel=error

npm install --location=global homebridge-config-ui-x@latest

mkdir -p $(pwd)/staging/var/lib/homebridge
npm install --prefix $(pwd)/staging/var/lib/homebridge homebridge@latest

cd staging
Expand Down
1 change: 1 addition & 0 deletions deb/debian/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ if [ "$1" = "upgrade" ] && [ $2 ]; then
rm -rf /var/lib/homebridge/package-lock.json
rm -rf /var/lib/homebridge/pnpm-lock.yaml
rm -rf /var/lib/homebridge/package.json
rm -rf /var/lib/homebridge/.npmrc
fi

echo "Unpacking may take several minutes on low powered devices."
Expand Down
6 changes: 6 additions & 0 deletions deb/var/lib/homebridge/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
audit = false
auto-install-peers = true
fund = false
global-style = true
loglevel = "error"
update-notifier = false

0 comments on commit 5181560

Please sign in to comment.