Update setup.md (#294)

Add pnpm troubleshooting step if you don't have node-gyp installed & also add pnpm run build to the instructions.
This commit is contained in:
teo0781 2022-07-07 18:19:54 +02:00 committed by GitHub
parent 66fcd3fe12
commit 6a321fe052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.