dosubot[bot] commented on issue #29282:
URL: https://github.com/apache/superset/issues/29282#issuecomment-2174986116

   <!-- Greeting -->
   Hey there, @kitchenchem224! I'm here to help you with any issues you're 
experiencing while using our repository. Let's work together to get this sorted 
out.
   
   <!-- Answer -->
   To resolve the error "failed to solve: process '/bin/sh -c npm run 
${BUILD_CMD}' did not complete successfully: exit code: 1" when running `docker 
compose up` for the Superset repository, ensure that you are using the correct 
Node.js version specified in the `.nvmrc` file of the `superset-frontend` 
directory. The required Node.js version is `v18.20.1`.
   
   Here is how you can set the correct Node.js version:
   
   1. **Install NVM (Node Version Manager)** if you haven't already:
       ```sh
       curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh 
| bash
       source ~/.bashrc
       ```
   
   2. **Navigate to the `superset-frontend` directory**:
       ```sh
       cd path/to/superset/superset-frontend
       ```
   
   3. **Use NVM to install and use the correct Node.js version**:
       ```sh
       nvm install
       nvm use
       ```
   
   4. **Verify the Node.js version**:
       ```sh
       node -v
       # It should output: v18.20.1
       ```
   
   Additionally, ensure that the `BUILD_CMD` environment variable is correctly 
set to "build" as specified in the Dockerfile. The relevant section of the 
Dockerfile is:
   
   ```dockerfile
   ARG NPM_BUILD_CMD="build"
   ...
   ENV BUILD_CMD=${NPM_BUILD_CMD}
   ...
   RUN npm run ${BUILD_CMD}
   ```
   
   After ensuring the correct Node.js version is in use and the `BUILD_CMD` is 
set correctly, try running `docker compose up` again. This should resolve the 
error related to the build command 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/.nvmrc)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/Dockerfile)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to