Basically, in order to solve such error, we need to look into out package.json file and remove dependency which might be added twice.