Problem upgrading to ionic pro -rename ansistyles

We are trying to move to ionic pro, and we can successfully build our app, but when it comes to deployment, we’ve run into this problem running npm install @ionic/app-scripts@latest @ionic/pro@latest:

ENOENT: no such file or directory, rename '/path/my-mobile-ionic/node_modules/npm/node_modules/ansistyles' -> '/path/my-mobile-ionic/node_modules/npm/node_modules/.ansistyles.DELETE'

Googling it I find others with similar issues, but others’ solutions have not helped.

hello, this is mainly because your frontend developer left, requires in javascript before leaving or so. Something that is common. the other reason would be a fail in your ecommerce server. regards,

Work on your English before trying to be funny.

The answer for me was running npm dedupe. This issue can arise when npm installs two packages which have the same dependencies.