You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/10/18 13:53:00 UTC

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

    [ https://issues.apache.org/jira/browse/AIRFLOW-5080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16954632#comment-16954632 ] 

ASF GitHub Bot commented on AIRFLOW-5080:
-----------------------------------------

potiuk commented on pull request #5693: [AIRFLOW-5080] Added npm to apt-get install in compile.sh for docker
URL: https://github.com/apache/airflow/pull/5693
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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
>            Assignee: Esfahan
>            Priority: Blocker
>
> 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/compile.sh|https://github.com/apache/airflow/blob/1.10.3/scripts/ci/kubernetes/docker/compile.sh#L30].
> {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
(v8.3.4#803005)