Issue With Buildpacks for Ghost Git-Push to Dokku. Seeking Potential Solution or Alternative

I’ve been trying at Dokku for a while and wanted to integrate Ghost into a Dokku App, but found that the common way is through a Docker Image, which doesn’t allow me to update / do custom edits within the Ghost install. So I’m thankful that you have built this option to enable edits / updates on my local machine to be pushed to a Dokku server.

I saw a repo that potentially has a solution for me but has not been updated for quite a long time. → [metasansana]/ buildpack-ghost-cms-theme . I have also highlighted the potential issue to the author, though I am unsure whether he still continues the project Error In Compilation For Dokku: line 57: npm: command not found · Issue #1 · metasansana/buildpack-ghost-cms-theme · GitHub

However, it is sort of the only lifeline I am seeing right now to help me with either a (1) Local Git Push to Dokku or (2) Private Git Repo Sync from Github to Dokku.

I am facing this error and hope to see if there is any other help I may get to either (a) Suggest any alternative solutions that might be floating around, or (b) Not too sure why there is an error on the Dokku server when Git is being processed by the buildpack → "line 57: npm: command not found "

Continue In Next Thread as I cannot put more than 3x links here.

Is it potentially related to How to install Ghost locally on Mac, PC or Linux via buildpack-ghost-cms-theme/compile at master · metasansana/buildpack-ghost-cms-theme · GitHub ?

Hope I may hear from some of you guys soon so I can resolve this soon as I have been at this problem for the last 2-3 days! Much appreciated! Thank you!

Currently running on:

  • DigitialOcean Dokku Droplet
  • dokku version 0.24.3
  • Ghost 4.1.2 (Doesn’t really matter at the moment for this problem)
  • App / website not up because the Git push / pull to be compiled by Dokku is currently not working at the moment.


------> Mltipack app detected
=====> Downloading Buildpack:
=====> Detected Framework: Ghost CMS Theme
=== Preserving theme for use with ghost installation…
App theme folder contents:
total 864
drwxr-xr-x 4 herokuishuser herokuishuser 4096 Apr 2 06:01 .
drwxrwxrwt 1 root root 4096 Apr 2 06:01 …
drwxr-xr-x 6 herokuishuser herokuishuser 4096 Apr 2 06:01 assets
-rw-r–r-- 1 herokuishuser herokuishuser 2138 Apr 2 06:01 author.hbs
-rw-r–r-- 1 herokuishuser herokuishuser 850 Apr 2 06:01 config.production.json
-rw-r–r-- 1 herokuishuser herokuishuser 2211 Apr 2 06:01 default.hbs
-rw-r–r-- 1 herokuishuser herokuishuser 1142 Apr 2 06:01 error-404.hbs
-rw-r–r-- 1 herokuishuser herokuishuser 2761 Apr 2 06:01 error.hbs
-rw-r–r-- 1 herokuishuser herokuishuser 1452 Apr 2 06:01 index.hbs
-rw-r–r-- 1 herokuishuser herokuishuser 818438 Apr 2 06:01 package-lock.json
-rw-r–r-- 1 herokuishuser herokuishuser 2648 Apr 2 06:01 package.json
-rw-r–r-- 1 herokuishuser herokuishuser 1220 Apr 2 06:01 page.hbs
drwxr-xr-x 3 herokuishuser herokuishuser 4096 Apr 2 06:01 partials
-rw-r–r-- 1 herokuishuser herokuishuser 5022 Apr 2 06:01 post.hbs
-rw-r–r-- 1 herokuishuser herokuishuser 2396 Apr 2 06:01 tag.hbs
=== Installing ghost-cli…
/tmp/buildpackTAzEG/bin/compile: line 57: npm: command not found
2021/04/02 06:01:21 exit status 127
2021/04/02 06:01:21 exit status 1
2021/04/02 06:01:22 exit status 1