you can solve this problem with npm cache clean --force. It will be enough to write this command before npm install in your deploy environment.