Skip to content

Commit

Permalink
Update node/npm to latest LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbelesky committed Jun 24, 2020
1 parent 09bf94c commit 887b056
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV PYTHONUNBUFFERED 1
# Setup Node/NPM
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs

# Copy all our files into the baseimage and cd to that directory
Expand All @@ -23,7 +23,7 @@ ADD . /tcd/
RUN git config --global url."https://".insteadOf git://

# Install our node/python requirements
RUN npm install -g npm@6.3.0
RUN npm install -g npm@6.14.5
RUN pip install -r ./config/requirements_core.txt
RUN npm install --only=production

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ build: false

# Set python version to not be the default (2.7.X)
environment:
nodejs_version: "8" # Match install instructions
nodejs_version: "12" # Match install instructions
matrix:
- PYTHON: "C:\\Python38" # Match install instructions
PYTHON_VERSION: "3.8.3"
Expand Down
4 changes: 2 additions & 2 deletions docs/install/linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Short version
=============
.. parsed-literal::
curl -sL https\:\/\/deb.nodesource.com/setup_8.x | sudo -E bash - # add Node.js source repository
curl -sL https\:\/\/deb.nodesource.com/setup_12.x | sudo -E bash - # add Node.js source repository
sudo apt install python3-dev python3-venv postgresql libpq-dev nodejs gcc g++ make
git clone https\:\/\/github.com/TabbycatDebate/tabbycat.git
cd tabbycat
Expand Down Expand Up @@ -96,7 +96,7 @@ Tabbycat requires Node and its package manager to compile front-end dependencies
.. parsed-literal::
$ sudo apt install curl
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt install -y nodejs
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
Expand Down
2 changes: 1 addition & 1 deletion docs/install/osx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ You'll need to use the PostgreSQL command-line tools, so run the command that th
1(c). Node.js/NPM
--------------------------------------------------------------------------------

Download and run the `node.js 8 macOS Installer (.pkg) <https://nodejs.org/dist/v8.9.4/node-v8.9.4.pkg>`_
Download and run the `node.js 8 macOS Installer (.pkg) <https://nodejs.org/dist/v12.18.1/node-v12.18.1.pkg>`_

2. Get the source code
================================================================================
Expand Down
2 changes: 1 addition & 1 deletion docs/install/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ requires Git to work. So, install the latest version for Windows from the
-----------------
*Node.js is a JavaScript runtime.*

Download and run the node.js 8 Installer (.msi) for either `x64 versions <https://nodejs.org/dist/v8.9.4/node-v8.9.4-x64.msi>`_ of Windows or `x86 versions <https://nodejs.org/dist/v8.9.4/node-v8.9.4-x86.msi>`_.
Download and run the node.js 8 Installer (.msi) for either `x64 versions <https://nodejs.org/dist/v12.18.1/node-v12.18.1-x64.msi>`_ of Windows or `x86 versions <https://nodejs.org/dist/v12.18.1/node-v12.18.1-x86.msi>`_.

2. Get the source code
======================
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"not ie <= 11"
],
"engines": {
"node": "8.11.x",
"npm": "6.3.x"
"node": "12.18.x",
"npm": "6.14.x"
},
"license": "UNLICENSED",
"repository": "https://github.com/TabbycatDebate/tabbycat"
Expand Down

0 comments on commit 887b056

Please sign in to comment.