Update node to v12.14.1
This commit is contained in:
parent
9734c089fa
commit
de855f08fe
@ -1,6 +1,6 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 8
|
- 12
|
||||||
cache: npm
|
cache: npm
|
||||||
before_script:
|
before_script:
|
||||||
- cd $TRAVIS_BUILD_DIR/app && npm ci
|
- cd $TRAVIS_BUILD_DIR/app && npm ci
|
||||||
|
6
app/package-lock.json
generated
6
app/package-lock.json
generated
@ -1189,9 +1189,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "8.10.59",
|
"version": "12.12.25",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.59.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.25.tgz",
|
||||||
"integrity": "sha512-8RkBivJrDCyPpBXhVZcjh7cQxVBSmRk9QM7hOketZzp6Tg79c0N8kkpAIito9bnJ3HCVCHVYz+KHTEbfQNfeVQ==",
|
"integrity": "sha512-nf1LMGZvgFX186geVZR1xMZKKblJiRfiASTHw85zED2kI1yDKHDwTKMdkaCbTlXoRKlGKaDfYywt+V0As30q3w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/nodemailer": {
|
"@types/nodemailer": {
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
"@types/jest": "^24.0.23",
|
"@types/jest": "^24.0.23",
|
||||||
"@types/lodash": "^4.14.149",
|
"@types/lodash": "^4.14.149",
|
||||||
"@types/mapbox__sphericalmercator": "^1.1.3",
|
"@types/mapbox__sphericalmercator": "^1.1.3",
|
||||||
"@types/node": "^8.10.59",
|
"@types/node": "^12.12.25",
|
||||||
"@types/nodemailer": "^6.2.2",
|
"@types/nodemailer": "^6.2.2",
|
||||||
"@types/prop-types": "^15.7.3",
|
"@types/prop-types": "^15.7.3",
|
||||||
"@types/react": "^16.9.16",
|
"@types/react": "^16.9.16",
|
||||||
|
@ -37,7 +37,7 @@ Now clone the colouring london codebase.
|
|||||||
Now install Node. It is helpful to define some local variables.
|
Now install Node. It is helpful to define some local variables.
|
||||||
|
|
||||||
```
|
```
|
||||||
NODE_VERSION=v8.11.3
|
NODE_VERSION=v12.14.1
|
||||||
DISTRO=linux-x64
|
DISTRO=linux-x64
|
||||||
wget -nc https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$DISTRO.tar.xz
|
wget -nc https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$DISTRO.tar.xz
|
||||||
sudo mkdir /usr/local/lib/node
|
sudo mkdir /usr/local/lib/node
|
||||||
@ -137,7 +137,7 @@ root user profile. Don't forget to exit from root at the end.
|
|||||||
|
|
||||||
```
|
```
|
||||||
sudo su root
|
sudo su root
|
||||||
export NODEJS_HOME=/usr/local/lib/node/node-v8.11.3/bin/`
|
export NODEJS_HOME=/usr/local/lib/node/node-v12.14.1/bin/`
|
||||||
export PATH=$NODEJS_HOME:$PATH`
|
export PATH=$NODEJS_HOME:$PATH`
|
||||||
npm install -g npm@next`
|
npm install -g npm@next`
|
||||||
exit
|
exit
|
||||||
|
@ -68,7 +68,7 @@ Now set appropriate permissions on the `colouring-london` directory
|
|||||||
|
|
||||||
First define a couple of convenience variables:
|
First define a couple of convenience variables:
|
||||||
|
|
||||||
`NODE_VERSION=v8.11.3`
|
`NODE_VERSION=v12.14.1`
|
||||||
|
|
||||||
`DISTRO=linux-x64`
|
`DISTRO=linux-x64`
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ Now upgrade the `npm` package manager to the most recent release with global pri
|
|||||||
|
|
||||||
`sudo su root`
|
`sudo su root`
|
||||||
|
|
||||||
`export NODEJS_HOME=/usr/local/lib/node/node-v8.11.3/bin/`
|
`export NODEJS_HOME=/usr/local/lib/node/node-v12.14.1/bin/`
|
||||||
|
|
||||||
`export PATH=$NODEJS_HOME:$PATH`
|
`export PATH=$NODEJS_HOME:$PATH`
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ Perform a global install of PM2
|
|||||||
|
|
||||||
`sudo su root`
|
`sudo su root`
|
||||||
|
|
||||||
`export NODEJS_HOME=/usr/local/lib/node/node-v8.11.3/bin/`
|
`export NODEJS_HOME=/usr/local/lib/node/node-v12.14.1/bin/`
|
||||||
|
|
||||||
`export PATH=$NODEJS_HOME:$PATH`
|
`export PATH=$NODEJS_HOME:$PATH`
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ apt-get install -y \
|
|||||||
#
|
#
|
||||||
|
|
||||||
# node version and platform
|
# node version and platform
|
||||||
NODE_VERSION=v8.11.3
|
NODE_VERSION=v12.14.1
|
||||||
DISTRO=linux-x64
|
DISTRO=linux-x64
|
||||||
|
|
||||||
# download
|
# download
|
||||||
|
Loading…
Reference in New Issue
Block a user