parcel

Cannot get Parcel 2.2.1 to reliably open the dev server (npm)


I've npm installed parcel 2.2.1 as a dev dependency in a project. Very rarely, the dev server will work, but 99% of the time, running npx parcel ./src/index.html will cause a slight pause and then return a new terminal prompt without any output or server instance. I've tried:

It is even the case that after getting the dev server running successfully, I use Ctrl-C to close and then try to restart and it doesn't work. Computer powerdown powerup without any code change and the dev server fails still. I'm lost! Any suggestions? Node 16.13.2 x64, Windows 10


Solution

  • This behavior has now been confirmed and is an open issue on github.

    https://github.com/parcel-bundler/parcel/issues/7603

    I'm using parcel 2.2.0 without issue.

    > npm uninstall parcel
    > npm i parcel@2.2.0