From 95a3565d1c412983c0380a6cb3e4588c313d081a Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 31 May 2022 17:55:07 +0900 Subject: [PATCH] Fix `Cannot find module` issue (#8770) * Add --force to yarn in the installation script * CHAGELOG --- CHANGELOG.md | 1 + scripts/install-packages.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfcf52ce9..968759501 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ You should also include the user name that made the change. - Server: use correct order of attachments on notes @Johann150 - Server: prevent crash when processing certain PNGs @syuilo - Server: Fix unable to generate video thumbnails @mei23 +- Server: Fix `Cannot find module` issue @mei23 ## 12.110.1 (2022/04/23) diff --git a/scripts/install-packages.js b/scripts/install-packages.js index bc8e016a3..d1dea3ebe 100644 --- a/scripts/install-packages.js +++ b/scripts/install-packages.js @@ -3,7 +3,7 @@ const execa = require('execa'); (async () => { console.log('installing dependencies of packages/backend ...'); - await execa('yarn', ['install'], { + await execa('yarn', ['--force', 'install'], { cwd: __dirname + '/../packages/backend', stdout: process.stdout, stderr: process.stderr,