Skip to content

[BUG] serve script doesn't start http server after upgrade to npm 7 #2748

@jost-s

Description

@jost-s

Current Behavior:

Running npm run serve in a Vue CLI generated project compiles successfully but doesn't start the development server.
From package.json:

"scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build"
  }

The output at the end of compilation is

DONE  Compiled successfully in 37363ms                                                                                                                                                                                                                                                  5:25:52 PM

No type errors found
Version: typescript 3.9.7
Time: 13398ms

Before the upgrade to npm 7, the server started as usual. When I run ./node_modules/.bin/vue-cli-service serve, the server starts as usual too. Lastly when I create a fresh Vue app with the CLI and run the server script, the server starts successfully as well, using npm 7:

DONE  Compiled successfully in 90751ms                                                                                               6:19:22 PM

No type errors found
Version: typescript 3.9.7
Time: 12908ms

  App running at:
  - Local:   https://192.168.0.1:8080/ 
  - Network: https://192.168.0.1:8080/

  Note that the development build is not optimized.
  To create a production build, run npm run build.

Expected Behavior:

Dev server starts just like before the upgrade from npm 6 to npm 7.

Steps To Reproduce:

I cannot reproduce the problem yet and am asking for help to debug the issue. How can I get information about what's going wrong during server startup?

Environment:

OS: macOS 10.15.7
Node: 12.16.1
npm: 7.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions