Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Webpack-cli postinstall script fails to run #237

Open
csimi opened this issue Jun 6, 2019 · 0 comments
Open

Webpack-cli postinstall script fails to run #237

csimi opened this issue Jun 6, 2019 · 0 comments

Comments

@csimi
Copy link

csimi commented Jun 6, 2019

There seems to be some sort of module resolution bug.

Reproduce:

docker run --rm node:12-alpine npx [email protected] help

Result:

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

Error: Cannot find module '/root/.npm/_npx/1/lib/node_modules/webpack-cli/bin/opencollective.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
    at Function.Module._load (internal/modules/cjs/loader.js:527:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node ./bin/opencollective.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-06T06_49_47_772Z-debug.log
Install for [ 'webpack-cli@latest' ] failed with code 1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant