Dark matter and dark energy are simply fudge factors to keep the current paradigm of gravity. Dark matter is postulated to account for the fact that gravity is not strong enough to keep galaxies together. Dark energy is postulated to account for why the universe as a whole is accelerating in its expansion.
If one considers the possibility that the universe is only six thousand years old as the Bible says, the problem is solved. What we see is just the location of the expanding stars at the moment we are observing them. Possibly nothing is holding them together. Or maybe there is an undiscovered concept not perceptible by observation.