gecko-dev/taskcluster/docker/recipes/install-node.sh
Mark Banner 384e926e5e Bug 1331065 - Upgrade the Lint docker image to node v6.9.1. r=jmaher
MozReview-Commit-ID: KOdYXXERO8p

--HG--
extra : rebase_source : 5b74d07a0ecc89dd32dcaa78300626cc901cc756
2017-01-20 10:57:47 +00:00

13 lines
526 B
Bash

#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# This script installs Node v6.
wget https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x64.tar.gz
echo 'a9d9e6308931fa2a2b0cada070516d45b76d752430c31c9198933c78f8d54b17 node-v6.9.1-linux-x64.tar.gz' | sha256sum -c
tar -C /usr/local -xz --strip-components 1 < node-v6.9.1-linux-x64.tar.gz
node -v # verify
npm -v