Skip to content

NPM hangs #2582

Closed
Closed

Description

@easbar

For the last few commits the Travis CI build failed while running npm install. For example here

[INFO] --- frontend-maven-plugin:1.10.0:npm (npm install) @ graphhopper-web-bundle ---

[INFO] Running 'npm install' in /home/travis/build/graphhopper/graphhopper/web-bundle

[INFO] npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

[INFO] npm WARN deprecated [email protected]: The package has been renamed to `open`

[INFO] npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

[INFO] npm WARN deprecated [email protected]: This module has moved: please install @mapbox/vector-tile instead

[INFO] npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

[INFO] npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

[INFO] npm WARN deprecated [email protected]: This module has moved: please install @mapbox/point-geometry instead

[INFO] npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated

[INFO] npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

[INFO] npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated

[INFO] npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated

[INFO] npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received

The build has been terminated

Apparently the npm install command hangs for some reason so the build times out after ten minutes.

Activity

  1. easbar commented on May 17, 2022

    @easbar
    MemberAuthor

    One thing I noticed is that in older, successful builds the next line was

    [INFO] npm notice created a lockfile as package-lock.json. You should commit this file.
    

    So maybe the build hangs because it cannot create the package-lock.json file?

  2. karussell commented on May 19, 2022

    @karussell
    Member

    The build hangs locally for me too (not sure what I changed maybe due to my tests to change node and npm version). But the hanging is unrelated to travis it seems.

    and:

    rm -rf node*
    rm package-lock.json
    

    didn't help

  3. easbar commented on May 20, 2022

    @easbar
    MemberAuthor

    So maybe the build hangs because it cannot create the package-lock.json file?

    That did not help. Upgrading the version of the maven-frontend-plugin did not help either: 57d3e14

    The build hangs locally for me too

    Same here

  4. easbar commented on May 20, 2022

    @easbar
    MemberAuthor

    Maybe this was some kind of authentication issue when downloading npm packages. Using npm install --verbose the build hung here:

    [INFO] npm http fetch GET 304 https://registry.npmjs.org/object-visit 57ms (from cache)
    [INFO] npm http fetch GET 304 https://registry.npmjs.org/sigmund 230ms (from cache)
    [INFO] npm http fetch GET 304 https://registry.npmjs.org/copy-descriptor 44ms (from cache)
    [INFO] npm http fetch GET 304 https://registry.npmjs.org/point-geometry 698ms (from cache)
    [INFO] npm WARN deprecated [email protected]: This module has moved: please install @mapbox/point-geometry instead
    [INFO] npm http fetch GET 304 https://registry.npmjs.org/get-assigned-identifiers 741ms (from cache)
    [INFO] npm http fetch GET 304 https://registry.npmjs.org/runnel 697ms (from cache)
    [INFO] npm http fetch GET 304 https://registry.npmjs.org/union-value 224ms (from cache)
    
  5. karussell commented on May 20, 2022

    @karussell
    Member

    Did npm change something on their side? (e.g. locally it works without having updated anything)

  6. easbar commented on May 20, 2022

    @easbar
    MemberAuthor

    Did npm change something on their side?

    I don't know

    locally it works without having updated anything

    Which version worked? I thought the install hung locally for you also? At least for me it did.

  7. karussell commented on May 20, 2022

    @karussell
    Member

    Yesterday there was a problem for me too, yes. But not today. Weird stuff.

  8. easbar commented on May 20, 2022

    @easbar
    MemberAuthor

    But did you delete node_modules, node and package-lock.json? Using this commit: 90729f3 and running mvn package -DskipTests the build still hangs on my laptop.

  9. changed the title [-]Travis build fails once again[/-] [+]NPM hangs[/+] on May 20, 2022
  10. karussell commented on May 20, 2022

    @karussell
    Member

    Ah, yes, thanks! So it was indeed something related to the npm or node version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions