question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx wait-on failing

See original GitHub issue

Greetings,

Since this morning, we have failure on Circle CI due to npx wait-on.

Here is the error message :

internal/modules/cjs/loader.js:582
    throw err;
    ^

Error: Cannot find module '/root/.npm/_npx/1011/lib/node_modules/wait-on/node_modules/core-js/scripts/postinstall'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! core-js@2.6.6 postinstall: `node scripts/postinstall`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the core-js@2.6.6 postinstall script. 

Thanks for your input.

Cheers

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
seenickcodecommented, Sep 26, 2019

Hi guys, I’m getting this myself. Maybe I need to clear some kind of cache? Here’s my config:

version: 2.1
orbs:
  cypress: cypress-io/cypress@1
workflows:
  build:
    jobs:
      - cypress/run:
          start: FSF_ENV_NAME=stg npm start
          command: npx cypress run --config baseUrl=http://localhost:3000
          wait-on: 'http://localhost:3000'

CircleCI stuck on this step with the same error:

#!/bin/bash -eo pipefail
npx wait-on http://localhost:3000
internal/modules/cjs/loader.js:582
    throw err;
    ^

Error: Cannot find module '/root/.npm/_npx/765/lib/node_modules/wait-on/node_modules/core-js/scripts/postinstall'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
Read more comments on GitHub >

github_iconTop Results From Across the Web

wait-on - npm
wait-on is a cross platform command line utility and Node.js API ... -t, --timeout Maximum time in ms to wait before exiting with...
Read more >
How to wait for server start complete from an npm script?
I found wait-on today and like its approach. It only does the wait, not other things like command launching.
Read more >
node server.js $BUILD_DIR & npx wait-on http://localhost:3000
Is it build folder of project? Can I not give “npm start” command here? And one more thing, will it stop the pipeline...
Read more >
Building a desktop app with Electron and Create React App
wait-on : Utility to wait for files, ports, sockets, etc. We'll use it to wait for the React app to be built before...
Read more >
Test component interactions with Storybook - JS.ORG
That makes it easier to debug failures because you're running tests in ... 6006 --silent" \ "npx wait-on tcp:6006 && yarn test-storybook".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found