You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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
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:If I install
@webpack-cli/init
manually (and without-g
, haven't tried with) then that error does not occur.The text was updated successfully, but these errors were encountered: