Fixed php curl error and installed wp cli globally