Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: "webpack-cli init" errors when trying to install @webpack-cli/init #741

Closed
Pomax opened this issue Jan 24, 2019 · 3 comments
Closed
Labels

Comments

@Pomax
Copy link

Pomax commented Jan 24, 2019

Describe the bug

I tried to run webpack-cli init without having the separate init module installed, which makes webpack-cli inform me that there is a new module for that, and asks me whether it should install that. Saying "yes" leads to the following error:

i:\temp\mj>npx webpack-cli init
npx: installed 1 in 1.133s
Path must be a string. Received undefined
i:\temp\mj\node_modules\webpack-cli\bin\cli.js
The command moved into a separate package: @webpack-cli/init
Would you like to install init? (That will run npm install -g @webpack-cli/init) (yes/NO)yes
{ Error: Cannot find module 'i:\temp\mj\node_modules\@webpack-cli\init'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (i:\temp\mj\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
    at runCommand.then.result (i:\temp\mj\node_modules\webpack-cli\bin\prompt-command.js:94:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7) code: 'MODULE_NOT_FOUND' }

If I install @webpack-cli/init manually (and without -g, haven't tried with) then that error does not occur.

@rishabh3112
Copy link
Member

Thanks, @Pomax for reporting. It should be fixed soon.

@evenstensberg evenstensberg changed the title "webpack-cli init" errors when trying to install @webpack-cli/init bug: "webpack-cli init" errors when trying to install @webpack-cli/init Feb 5, 2019
@evenstensberg evenstensberg changed the title bug: "webpack-cli init" errors when trying to install @webpack-cli/init Bug: "webpack-cli init" errors when trying to install @webpack-cli/init Feb 5, 2019
@ematipico
Copy link
Contributor

PR merged, next release will contain the fix!

@Pomax
Copy link
Author

Pomax commented Mar 19, 2019

sweet, many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants