avh4 / elm-upgrade

Upgrade Elm projects
https://www.npmjs.com/package/elm-upgrade
MIT License
122 stars 15 forks source link

npx elm-upgrade fail #71

Open ChetHarrison opened 6 years ago

ChetHarrison commented 6 years ago

I got this error when attempting npx elm-upgrade

$ npx elm-upgrade
{ HTTPError: Response code 404 (Not Found)
    at stream.catch.then.data (/usr/local/lib/node_modules/elm-upgrade/node_modules/got/index.js:129:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
  message: 'Response code 404 (Not Found)',
  host: 'package.elm-lang.org',
  hostname: 'package.elm-lang.org',
  method: 'GET',
  path: '/new-packages',
  statusCode: 404,
  statusMessage: 'Not Found' }
ERROR: Unable to connect to http://package.elm-lang.org.  Please try again later.

Any thoughts?

avh4 commented 6 years ago

/new-packages is the path for the Elm 0.18 package website... it looks like it's running an old version of elm-upgrade? I guess maybe I don't fully understand how npx works. Does npx -p elm-upgrade@elm0.19.0 elm-upgrade work?

ChetHarrison commented 6 years ago

Yes. Thank you