You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Esfahan (JIRA)" <ji...@apache.org> on 2019/07/31 07:13:00 UTC

[jira] [Created] (AIRFLOW-5080) npm: not found with ./airflow/www_rbac/compile_assets.sh

Esfahan created AIRFLOW-5080:
--------------------------------

             Summary: npm: not found with ./airflow/www_rbac/compile_assets.sh
                 Key: AIRFLOW-5080
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5080
             Project: Apache Airflow
          Issue Type: Bug
          Components: build
    Affects Versions: 1.10.3
            Reporter: Esfahan


h2. Problem
When I run [scripts/ci/kubernetes/docker/build.sh|https://github.com/apache/airflow/blob/1.10.3/scripts/ci/kubernetes/docker/build.sh#L45] to build Docker Image, I encountered the following error.

{code}
running compile_assets
./airflow/www_rbac/compile_assets.sh: 26: ./airflow/www_rbac/compile_assets.sh: npm: not found
{code}

So, http://YOUR_HOSTNAME/static didn't create. I got `500 Internal Server Error` with it on a browser(Chrome).

h2. Proposal
I think it needs to install npm in [scripts/ci/kubernetes/docker/build.sh|https://github.com/apache/airflow/blob/1.10.3/scripts/ci/kubernetes/docker/build.sh#L45].

{code}
apt-get install -y --no-install-recommends git nodejs npm
{code}

It works for me.
Please consider my proposal.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)