From 9ff483e85bc14ca74e62775be8cc63295b8472cf Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 16 Jul 2021 18:31:34 -0300 Subject: [PATCH] Migrate to node 14; make it clear we require npm 7 in dev docs --- .nvmrc | 1 + Dockerfile | 2 +- docs/other-ways-to-run-otterscan.md | 2 +- package-lock.json | 14 +++++++------- package.json | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..a5e323e --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v14.17.3 diff --git a/Dockerfile b/Dockerfile index d4aa214..7583d23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12.22.3-alpine AS builder +FROM node:14.17.3-alpine3.14 AS builder RUN npm i -g npm@7.19.1 WORKDIR /otterscan-build COPY ["package.json", "package-lock.json", "/otterscan-build/"] diff --git a/docs/other-ways-to-run-otterscan.md b/docs/other-ways-to-run-otterscan.md index a23c31e..cddb843 100644 --- a/docs/other-ways-to-run-otterscan.md +++ b/docs/other-ways-to-run-otterscan.md @@ -40,7 +40,7 @@ First, a brief explanation about the app: These instructions are subjected to changes in future for the sake of simplification. -Make sure you have a working node 12/npm installation. +Make sure you have a working node 14/npm 7 installation. By default, it assumes your Erigon `rpcdaemon` processs is serving requests at `http://localhost:8545`. You can customize this URL by changing the `public/config.json` file. diff --git a/package-lock.json b/package-lock.json index df0002c..71853e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "@types/jest": "^26.0.24", - "@types/node": "^12.20.16", + "@types/node": "^14.17.5", "@types/react": "^17.0.14", "@types/react-blockies": "^1.4.1", "@types/react-dom": "^17.0.9", @@ -3031,9 +3031,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "12.20.16", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.16.tgz", - "integrity": "sha512-6CLxw83vQf6DKqXxMPwl8qpF8I7THFZuIwLt4TnNsumxkp1VsRZWT8txQxncT/Rl2UojTsFzWgDG4FRMwafrlA==" + "version": "14.17.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.5.tgz", + "integrity": "sha512-bjqH2cX/O33jXT/UmReo2pM7DIJREPMnarixbQ57DOOzzFaI6D2+IcwaJQaJpv0M1E9TIhPCYVxrkcityLjlqA==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", @@ -21040,9 +21040,9 @@ "version": "3.0.3" }, "@types/node": { - "version": "12.20.16", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.16.tgz", - "integrity": "sha512-6CLxw83vQf6DKqXxMPwl8qpF8I7THFZuIwLt4TnNsumxkp1VsRZWT8txQxncT/Rl2UojTsFzWgDG4FRMwafrlA==" + "version": "14.17.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.5.tgz", + "integrity": "sha512-bjqH2cX/O33jXT/UmReo2pM7DIJREPMnarixbQ57DOOzzFaI6D2+IcwaJQaJpv0M1E9TIhPCYVxrkcityLjlqA==" }, "@types/normalize-package-data": { "version": "2.4.0" diff --git a/package.json b/package.json index 76504bb..f9454c1 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "@types/jest": "^26.0.24", - "@types/node": "^12.20.16", + "@types/node": "^14.17.5", "@types/react": "^17.0.14", "@types/react-blockies": "^1.4.1", "@types/react-dom": "^17.0.9",