I've searched all the web but find not relevant solution. I've uninstalled both @angular/cli and node.js, cleared cache and reinstalled the latest version for the two both as an admin and non-admin yet no result. Below is the error message:
ERROR in ./node_modules/core-js/modules/es6.regexp.exec.js 1:2 Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
i 「wdm」: Failed to compile.
Sometimes it brings this after working on a particular project thereby causing me not to continue it. I create another one and it might even not compile at all. I've created several projects now and all I get is this error during compilation.
I also noticed that it's only when I create a new Angular project while connected to the internet will it create else it will not and even stayed longer than expected during the creation.
first remove node module and Uninstall the node
reinstall the application angular.io with globally than
npm install -g @angular/cli