A new report from McKinsey sets out how businesses and government can work together to preempt potential shortfalls in supplies of nickel and rare earth minerals.