Possibly save 1 hour of your time: I am not sure exactly what causes this issue.
- Windows 10
- node v8.9.1
- npm v5.6.0
1. Some has try the following:
npm install –no-optional
2. Others have downgraded to npm 5.3.
npm install email@example.com -g
3. Remove npm and npm cache
But none of the above works for me.
4. The hard way is to rollback and start with a working state.
5. Finally, if none of above works, start a new app and slowly migrate over to see what changes cause the issue. This is a tedious and long process.