Skip to content

Commit

Permalink
nodejs/npm apt preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed May 14, 2020
1 parent d394f31 commit 250e0d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stage3_homebridge/00-node-install/01-run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash -e


#
# Prevent Node.js being installed or updated later using apt
#
install -m 644 files/apt-preferences "${ROOTFS_DIR}/etc/apt/preferences"

#
# Install Node.js
# Installing the arm32v6 version of Node to ensure compilability with RaspberryPi 1 / Zero
Expand Down
9 changes: 9 additions & 0 deletions stage3_homebridge/00-node-install/files/apt-preferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Node.js should be updated using the "hb-config" tool.
Package: nodejs
Pin: release *
Pin-Priority: -1

# npm should be updated using "sudo npm install -g npm".
Package: npm
Pin: release *
Pin-Priority: -1

0 comments on commit 250e0d6

Please sign in to comment.