diff --git a/scripts/cross/Dockerfile b/scripts/cross/Dockerfile index 968c0f01a1..997343b048 100644 --- a/scripts/cross/Dockerfile +++ b/scripts/cross/Dockerfile @@ -12,12 +12,14 @@ RUN apt-get update -y && apt-get install --no-install-recommends -y -q \ libltdl-dev \ libltdl7 -RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - -RUN apt-get install -y nodejs npm +RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - +RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - +RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list + +RUN apt-get update -y && apt-get install nodejs yarn=1.12.1-1 RUN rm -rf /var/lib/apt/lists/* -RUN npm install -g yarn@1.12.1 ENV GOVERSION 1.11.5 RUN mkdir /goroot && mkdir /gopath diff --git a/ui/.nvmrc b/ui/.nvmrc index 368fe859d7..e338b86593 100644 --- a/ui/.nvmrc +++ b/ui/.nvmrc @@ -1 +1 @@ -v8.12.0 +v10 diff --git a/ui/scripts/start-vault.js b/ui/scripts/start-vault.js index 25479512bb..de2c2f8d61 100755 --- a/ui/scripts/start-vault.js +++ b/ui/scripts/start-vault.js @@ -71,4 +71,7 @@ process.on('exit', function() { vault.kill('SIGINT'); }); -fs.writeFile(pidFile, process.pid); +fs.writeFile(pidFile, process.pid, (err) => { + if (err) throw err; + console.log('The file has been saved!'); +});