THRIFT-3825 Javascript test dependency is no longer available
diff --git a/build/docker/ubuntu/Dockerfile b/build/docker/ubuntu/Dockerfile
index 56708bc..4f09538 100644
--- a/build/docker/ubuntu/Dockerfile
+++ b/build/docker/ubuntu/Dockerfile
@@ -134,8 +134,7 @@
 `# Node.js dependencies` \
       nodejs \
       nodejs-dev \
-      nodejs-legacy \
-      npm
+      nodejs-legacy
 
 RUN apt-get update && apt-get install -y --no-install-recommends \
 `# CSharp dependencies` \
@@ -185,6 +184,9 @@
     haxelib setup /usr/lib/haxe/lib && \
     haxelib install hxcpp
 
+# Node.js
+RUN curl -sSL https://www.npmjs.com/install.sh | sh
+
 # D
 RUN curl -sSL http://downloads.dlang.org/releases/2.x/2.070.0/dmd_2.070.0-0_amd64.deb -o /tmp/dmd_2.070.0-0_amd64.deb && \
     dpkg -i /tmp/dmd_2.070.0-0_amd64.deb && \