on master help sign in
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

commit16de3d1cc5e4a93b8be7200bad1a2319990bfe2f authorTom McLaughlin <pyro777@gmail.com> dateSat 24 Feb 2018, 19:42 (9 years ago) parent928633e
1 file changed+5
debian-bootstrap.sh+5
debian-bootstrap.sh+5
@@ -170,6 +170,11 @@ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
170170update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.9" 50
171171update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.9" 50
172172
173+# Made sure a "node" binary is in the path, as well as "nodejs".
174+# A historical naming collision on Debian means that the binary is called "nodejs",
175+# but some tools like tsc still expect "node" to exist.
176+ln -s /usr/bin/nodejs /usr/bin/node
177+
173178# install ocilib dependencies then build and install ocilib
174179cd /tmp \
175180 && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \