In my case the issue was caused due to foldering name of my repository.
I had special characters in one of the folders like this "C:\repos\shell's\App" and I was getting the exact same error.
Issue got fixed after I removed the special character (') and did a rimraf node_modules and then npm install.