TypeError: fields.flat is not a function (NPM already updated)

I’ve seen a few topics related to this before with the solution of updating to the latest version of NPM. I’ve tried that already and now it says version 15.3.0 when I run node -v.

I tried changing the version to 12.0.0 and that didn’t seem to work either.

Odd, are you 100% sure? On SO that looks like the solution:


I just ran nvm use 12.0.0 and it didn’t change anything. When I run node -v it confirms this and says “v12.0.0”.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.