Repository navigation
3.3.1 tarball missing node_modules / fails to start #8251
|
3.3.0 tarball https://github.com/requarks/wiki/releases/download/3.3.0/wiki-js.tar.gz: 62.1 MB resulting in failure on start: |
Replies: 2 comments 2 replies
|
This comes from a build change in 3.3.1, not your install. The release workflow stopped running Install the dependencies after extracting: cd /var/lib/wiki-js/backend
npm ci --omit=devRun it as the user the service runs as, then restart the service. The Docker image does the same step during its build (Dockerfile), which is why containers start fine. I checked it on Node 26.13.0: the extracted 3.3.1 tarball fails with the same |
|
You need to run The previous builds included dependencies that were only compatible with linux x64, and even then, it wasn't guaranteed that there wouldn't be compatibility issues with some of the included binaries. Running If what you're looking for is a simple single step, all batteries included, works on any machine install method, then it already exists and that's containers. If that's not something you want to consider, then you'll have to deal with that extra install step. |
You need to run
npm ci --omit=devin the./backend/folder. The docs were updated with the latest release to say so.The previous builds included dependencies that were only compatible with linux x64, and even then, it wasn't guaranteed that there wouldn't be compatibility issues with some of the included binaries. Running
npm ciensures the proper binaries are fetched for the target machine. I really don't consider runningnpm cito be a chore. It's a very normal step for many applications distributed this way.If what you're looking for is a simple single step, all batteries included, works on any machine install method, then it already exists and that's containers. If that's not someth…