From 6a321fe052e2a83ecb42e03b129d3f7c3876410d Mon Sep 17 00:00:00 2001 From: teo0781 <61596661+teo0781@users.noreply.github.com> Date: Thu, 7 Jul 2022 18:19:54 +0200 Subject: [PATCH] Update setup.md (#294) Add pnpm troubleshooting step if you don't have node-gyp installed & also add pnpm run build to the instructions. --- docs/setup.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/setup.md b/docs/setup.md index 9762d27..ee9a054 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -106,6 +106,7 @@ cd ~ git clone --recurse-submodules https://github.com/esmBot/esmBot cd esmBot pnpm install +pnpm run build ``` You'll also need to copy over some fonts for the image commands: ```sh @@ -186,6 +187,14 @@ If you wish to update the bot to the latest version/commit at any time, just run ### Error: Cannot find module './build/Release/image.node' The native image functions haven't been built. Run `pnpm run build` to build them. +### PNpm fails with error 'ELIFECYCLE  Command failed.' +You seem to be missing node-gyp, this can be fixed by running: +```sh +pnpm -g install node-gyp +rm -r node_modules +pnpm install +``` + ### Error: connect ECONNREFUSED 127.0.0.1:5432 PostgreSQL isn't running, you should be able to start it with `sudo systemctl start postgresql`. If you don't intend to use PostgreSQL, you should take another look at your `DB` variable in the .env file. @@ -202,4 +211,4 @@ Make sure Lavalink is running and started up completely. The bot skips loading s *** -If you have any further questions regarding self-hosting, feel free to ask in the #self-hosting-support channel on the [esmBot Support server](https://projectlounge.pw/support). \ No newline at end of file +If you have any further questions regarding self-hosting, feel free to ask in the #self-hosting-support channel on the [esmBot Support server](https://projectlounge.pw/support).