DEV Community

Discussion on: How to upgrade npm in Laravel Sail ?

Collapse
 
dr41d45 profile image
dr41d45

totally nonsense to do that. You have mess with permissions.

Collapse
 
abanoubha profile image
Abanoub Hanna

So, what is the ideal way to upgrade npm inside Sail?

Collapse
 
dr41d45 profile image
dr41d45 • Edited

you should need recreate docker container. If you look at Dockerfile, you will see required place.
...
&& apt-get install -y nodejs \
&& npm install -g npm \

...

PS in our company sail container is even isolated from www.

Thread Thread
 
abanoubha profile image
Abanoub Hanna

Thanks for your reply. I will try to upgrade it on the dockerfiles.