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:
parent
66fcd3fe12
commit
6a321fe052
1 changed files with 10 additions and 1 deletions
|
@ -106,6 +106,7 @@ cd ~
|
||||||
git clone --recurse-submodules https://github.com/esmBot/esmBot
|
git clone --recurse-submodules https://github.com/esmBot/esmBot
|
||||||
cd esmBot
|
cd esmBot
|
||||||
pnpm install
|
pnpm install
|
||||||
|
pnpm run build
|
||||||
```
|
```
|
||||||
You'll also need to copy over some fonts for the image commands:
|
You'll also need to copy over some fonts for the image commands:
|
||||||
```sh
|
```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'
|
### Error: Cannot find module './build/Release/image.node'
|
||||||
The native image functions haven't been built. Run `pnpm run build` to build them.
|
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
|
### 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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue