From 16de3d1cc5e4a93b8be7200bad1a2319990bfe2f Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Sat, 24 Feb 2018 19:42:01 -0800 Subject: [PATCH] Add a symlink from /usr/bin/node to /usr/bin/nodejs Fixes a problem on https://github.com/fpco/lts-haskell/issues/94 See https://github.com/yarnpkg/yarn/pull/1180 for more context on the underlying problem --- debian-bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian-bootstrap.sh b/debian-bootstrap.sh index 833da323..12ee32cd 100755 --- a/debian-bootstrap.sh +++ b/debian-bootstrap.sh @@ -170,6 +170,11 @@ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10 update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.9" 50 update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.9" 50 +# Made sure a "node" binary is in the path, as well as "nodejs". +# A historical naming collision on Debian means that the binary is called "nodejs", +# but some tools like tsc still expect "node" to exist. +ln -s /usr/bin/nodejs /usr/bin/node + # install ocilib dependencies then build and install ocilib cd /tmp \ && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \