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

Corbin's avatar

npm run watch just stopped working out of no where

What happens is when I run npm run watch it will compile once and then I won't get any notifications to see if it is compiling. It just looks sort of stuck on the terminal:

The terminal doesn't change from this


      Asset     Size  Chunks                    Chunk Names
 /js/app.js  1.39 MB       0  [emitted]  [big]  /js/app
/css/app.css   436 kB    0, 0  [emitted]  [big]  /js/app, /js/app

On the terminal tab I'm getting a strange message as well:

--node npm TERM_PROGRAM=Apple_Terminal TERM=xterm 256color Shell=/bin/bash --177x2

package.json file

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "npm run development -- --watch",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    },
    "devDependencies": {
        "axios": "^0.18",
        "bootstrap": "^4.0.0",
        "cross-env": "^5.1",
        "jquery": "^3.2",
        "laravel-mix": "^2.0",
        "lodash": "^4.17.4",
        "popper.js": "^1.12",
        "tailwindcss": "^0.6.1",
        "vue": "^2.5.7"
    }
}

OS is Mac Sierra 10.13.5 node v8.9.0 NPM version 5.5.1

I'm just using php artisan serve for my server.

I did just do an update on my computer: Command Line Tools (macOS High Sierra version 10.13) for Xcode. Version 9.4

0 likes
0 replies

Please or to participate in this conversation.