fixing bug for the /:name endpoint change in npm