The system tries to install into the HTML root folder instead of the Laravel application folder?
the folder is inside docker container, so everything is fine. try to run this command as an administrator or sudo
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello all,
I'm just trying my hand at installing Laravel on Windows via Sail. I have already installed Docker and WSL2 including Ubuntu. I can also install a Laravel application via Ubuntu accordingly. So far everything works fine.
However, if I want to run npm install (./vendor/bin/sail npm install) for example, I get the following error message:
npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /var/www/html/node_modules/@esbuild/android-arm npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/var/www/html/node_modules/@esbuild/android-arm' npm ERR! [Error: EACCES: permission denied, mkdir '/var/www/html/node_modules/@esbuild/android-arm'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/var/www/html/node_modules/@esbuild/android-arm' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in: npm ERR! /home/sail/.npm/_logs/2022-12-21T20_42_48_485Z-debug-0.log
The system tries to install into the HTML root folder instead of the Laravel application folder? How can I fix this problem?
Regards, David
Please or to participate in this conversation.