In my project, I\'m using Angular6 for the frontend. Now what I\'m trying to do is deploy my project which is in remote server into the actual server. I\'m using npm r
Please delete package-lock.json
and clear npm cache with npm cache clear --force
and delete whole node_modules
directory
Finally install or update packages again with npm install
/ npm update
You can also add any new packages with npm install <package-name>
This fixed for me.
Thanks and happy coding.
I was also having this same error but hopefully after spending 1 day on this error i have got this solution and it got started perfectly and i also hope this works for you guys also...