finally found how to fix the problem.
Yeayy
-
Go to control panel → System → Advanced System Settings then environment variables.
-
under system variables i created a new one with
NODE_SKIP_PLATFORM_CHECKand set its value to1. -
Go to Folder C:\xampp\nodejs
-
Right click Properties on Node.js > Compatibility, and put a checkmark on " run this as administrator"
-
Restart complete Machine.
