render-examples / php-laravel-docker

Larvel 5.8 PHP Docker Deployment on Render
https://render.com
MIT License
69 stars 599 forks source link

How to install Node and NPM packages with Vite #39

Closed anuzpandey closed 1 month ago

anuzpandey commented 1 year ago

I am running Laravel 10 application. Everything is working I guess but I have an error "Vite manifest file is not found". How do I install node and npm, and run npm scripts?

Thank you in advance.

lombervid commented 11 months ago

Adding this to Dockerfile worked for me:

RUN apk add --update nodejs npm

And then adding a script file to scripts folder to execute npm install as commented here: https://github.com/render-examples/php-laravel-docker/issues/26#issuecomment-1657330119