We show that there exists an effective upper bound for the solutions to the Nagell-Ljunggren equation of the form --=y^{q} in 4 unknowns in integers x>1, y>1, m>2, q>1, when x is a cube of an integer. Our method relies on a refined estimate of linear forms in logarithms