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

   <!-- Greeting -->
   Hey @engineerdawood! I'm here to help you with any bugs, questions, or 
contributions you have for this project. Let's work together to solve this 
issue!
   
   <!-- Answer -->
   The issue you're encountering with the Docker build failing due to NPM 
errors might be related to the Node.js version you're using. For Superset 
4.0.x, it's important to use Node.js version 18.x, as using an unsupported 
version like 16 can lead to build issues 
<sup>[[1]](https://github.com/apache/superset/issues/30663)</sup>.
   
   To resolve this, update your Dockerfile to use Node.js version 18.x. Here's 
a snippet you can use:
   
   ```dockerfile
   # Install nodejs for custom build
   # https://nodejs.org/en/download/package-manager/
   RUN set -eux; \
       curl -sL https://deb.nodesource.com/setup_18.x | bash -; \
       apt-get install -y nodejs; \
       node --version;
   ```
   
   Make sure to rebuild your Docker container after making this change. This 
should help resolve the NPM errors you're experiencing.
   
   
   <!-- 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: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to