Browse Source

Install npm in mesh image

Bob Mottram 7 years ago
parent
commit
6756137f15
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      src/freedombone-image-customise

+ 9
- 0
src/freedombone-image-customise View File

@@ -564,6 +564,15 @@ INSTALLING_MESH=
564 564
 install_patchwork() {
565 565
     chroot "$rootdir" apt-get -yq install g++ m4 libtool automake nodejs
566 566
     chroot "$rootdir" apt-get -yq install libxext-dev libxtst-dev libxkbfile-dev
567
+
568
+    wget https://www.npmjs.com/install.sh -O $rootdir/root/npm_install.sh
569
+    if [ ! -f $rootdir/root/npm_install.sh ]; then
570
+        echo $'Unable to download npm installer'
571
+        exit 8793636
572
+    fi
573
+    chroot "$rootdir" chmod +x /root/npm_install.sh
574
+    chroot "$rootdir" /root/npm_install.sh
575
+
567 576
     git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork
568 577
 
569 578
     cat <<EOF > $rootdir/usr/bin/install_patchwork