Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AlexSteele's avatar

Interesting error on npm run dev

I am on Linux behind a firewall, behind a firewall, this staging / dev server is almost identical in experience to our live servers. PHP 8.0.20, node -v is v12.22.2, and this is a fresh Laravel app I whipped up about 10 minutes ago. The only thing I have done so far was to pull in Laravel, and livewire, and run the first migration.

any help would be much appreciated...

APP_URL: http://lwkit..*******.com (node:4106) UnhandledPromiseRejectionWarning: Error: ENOSPC: System limit for number of file watchers reached, watch '/home/frog/domains/lwkit..*******.com/public_html/lwkit/vendor/laravel/jetstream/src/Http/Controllers/Inertia/UserProfileController.php'

0 likes
4 replies
tykus's avatar
tykus
Best Answer
Level 104

System limit for number of file watchers reached

Try npm run build instead

2 likes
eggplantSword's avatar

@tykus Is there a way to solve these errors instead of just building to production mode? I can't use VueDevtools if I use npm run build

AlexSteele's avatar

@msslgomez you would not use that command unless you are on a production server. if you are not - try this:

npm run dev

Please or to participate in this conversation.