Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error In Compilation For Dokku: line 57: npm: command not found #1

Open
sgrobert opened this issue Apr 2, 2021 · 1 comment
Open

Comments

@sgrobert
Copy link

sgrobert commented Apr 2, 2021

Hi there @metasansana,

Thank you for creating this Buildpack. 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 that this repo has not been updated for quite a long time. However, it is sort of the only lifeline I am seeing to help me with either a (1) Local Git Push to Dokku or (2) Private Git Repo Sync from Github to Dokku.

I sincerely hope you can help to verify on the error and see if you can help to check what is the "line 57: npm: command not found"

Is it potentially related to https://ghost.org/docs/install/local/ via https://github.com/metasansana/buildpack-ghost-cms-theme/blob/master/bin/compile ?

Hope you hear from you 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

------> Mltipack app detected
=====> Downloading Buildpack: https://github.com/metasansana/buildpack-ghost-cms-theme.git
=====> 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

@josegonzalez
Copy link

Seems like you are missing the nodejs buildpack from the instructions on that buildpack in your .buildpacks file. Seems like it should be as follows:

https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/metasansana/buildpack-ghost-cms-theme

Mind posting what your .buildpacks file contents are? Order matters, as they are run in order specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants