Unexpected token m in JSON at position 0 (angular

2019-08-30 08:08发布

问题:

I'm trying to npm install on my Angular 5 project on my Ubuntu instance. I get the error:

"Unexpected token m in JSON at position 0."

It appears to be some webpack issue where module is being misinterpreted.

Various solutions include

using backticks

changing loaders

But nowhere in my code do I have a place to implement those solutions (i.e. no {"loaders": ""} option?

The project runs fine locally, just not on Ubuntu. So I'm not sure what's going on. Thank you!!