'NPM run dev not compiling assets with error notifications for user are disabled on Windows 10
I recently reinstalled the Windows 10 operating system,
Upon running npm-install command
, npm installs correctly. However, on running the npm-run watch
command or npm run-dev
command, assets are not been compiled.
The following message is been displayed:
Notifications are disabled Reason: DisabledForUserPlease make sure that the app id is set correctly.
I have tried to reinstall and install Laravel 7, but the same issue persists. OS: Windows 10 build version 10240.
Screenshot of the message after running npm-run watch on CMD
Windows Notifications settings
Solution 1:[1]
All you have to do is Enable windows notification:
Windows settings ? Notifications & actions (on Windows 10)
And finally:
npm run dev
Solution 2:[2]
I got the same error when I muted the notification from snoretoast-x64.exe (see your screenshot of the error) in the windows action center after running a watch.
I just had to enable notification from SnoreToast again in Windows settings ? Notifications & actions (on Windows 10).
It went back to normal after that :)
Solution 3:[3]
add mix.disableNotifications()
to the webpack.mis.js file
Solution 4:[4]
u should run the command
npx mix
it will even install the required dependencies like 'resolve-url-loader', 'sass' and 'sass-loader' the u can compile the assets u want. Here is the documentation , it is very simple explanation mix documentation . then u can run
npx mix watch
Solution 5:[5]
Its because your snoretoast notifications are disables. Go to you windows settings -> notifications and actions scroll down and enable the snoretoast notifications. please refer to the attached screenshot
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Peter Mortensen |
Solution 2 | Peter Mortensen |
Solution 3 | Ayoub lwela |
Solution 4 | Quapeel |
Solution 5 |