From 680906ec2638934b20d39bf998b6d27369e098b0 Mon Sep 17 00:00:00 2001 From: rngnrs Date: Sat, 5 Sep 2020 00:41:04 +0700 Subject: [PATCH] Bump sharp version; trying to fix installing on Node 12.16.3+ Troubleshooting: https://github.com/Automattic/node-canvas/issues/1511 https://github.com/lovell/sharp/issues/2125 --- app/index.js | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index f7fa27b..b369c18 100644 --- a/app/index.js +++ b/app/index.js @@ -10,6 +10,9 @@ const Database = require('./models/dao.js'); let log = logError(console); catchThrown(log); + require('sharp'); + require('canvas'); + try { await Database.connect(); diff --git a/package.json b/package.json index eb59304..1c4fe97 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "jwt-simple": "^0.5.6", "koa": "^2.11.0", "koa-router": "^7.2.1", - "sharp": "^0.23.4", + "needle": "^2.5.2", + "sharp": "^0.26.0", "ws": "^3.1.0" }, "engines": {