Skip to content

Commit

Permalink
docs(fix): changed section to generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
callumhemming committed May 21, 2024
1 parent 1b83e24 commit cc0d9df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,6 @@ Finally the command will create changelog entries for this release.

The reason we do not rely on Lerna to push the release to Git is that this repo has a lengthy pre-push hook which runs all tests and builds the admin ui. This long wait then invalidates the npm OTP and the publish will fail. So the solution is to publish first and then push.

### Troubleshooting

#### Error: Could not load the "sharp" module using the \[OS\]-x\[Architecture\] runtime when running Vendure server.

- Make sure your Node version is ^18.17.0 || ^20.3.0 || >=21.0.0 to support the Sharp library.
- Make sure your package manager is up to date.
- **Not recommended**: if none of the above helps to resolve the issue, install sharp specifying your machines OS and Architecture. For example: `pnpm install sharp --config.platform=linux --config.architecture=x64` or `npm install sharp --os linux --cpu x64`


## License

MIT
9 changes: 9 additions & 0 deletions packages/create/templates/readme.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ can set `dbConnectionOptions.synchronize` to `true`. This will cause the databas
on each start, removing the need for migration files. Note that this is **not** recommended once you have production
data that you cannot lose.

## Troubleshooting

### Error: Could not load the "sharp" module using the \[OS\]-x\[Architecture\] runtime when running Vendure server.

- Make sure your Node version is ^18.17.0 || ^20.3.0 || >=21.0.0 to support the Sharp library.
- Make sure your package manager is up to date.
- **Not recommended**: if none of the above helps to resolve the issue, install sharp specifying your machines OS and Architecture. For example: `pnpm install sharp --config.platform=linux --config.architecture=x64` or `npm install sharp --os linux --cpu x64`

---
You can also run any pending migrations manually, without starting the server via the "vendure migrate" command.

0 comments on commit cc0d9df

Please sign in to comment.