I
I
Igor Prokofiev2020-08-07 09:36:10
webpack
Igor Prokofiev, 2020-08-07 09:36:10

Automatic installation of Webpack modules?

Hello.
I execute in the project folder webpack webpack.dev.jsand get the following errors:

ERROR in ../node_modules/consolidate/lib/consolidate.js
Module not found: Error: Can't resolve 'mustache' in '/home/user/site/frontends/node_modules/consolidate/lib'
 @ ../node_modules/consolidate/lib/consolidate.js 1045:59-78
 @ ../node_modules/consolidate/index.js
 @ ../node_modules/vue-loader/node_modules/@vue/component-compiler-utils/dist/compileTemplate.js
 @ ../node_modules/vue-loader/node_modules/@vue/component-compiler-utils/dist/index.js
 @ ../node_modules/vue-loader/lib/loaders/stylePostLoader.js
 @ ../node_modules/vue-loader/lib/loaders/pitcher.js
 @ ../node_modules/vue-loader/lib/plugin-webpack4.js
 @ ../node_modules/vue-loader/lib/plugin.js
 @ ../webpack.common.js
 @ ../webpack.dev.js
 @ ./webpack.dev.js

ERROR in ../node_modules/consolidate/lib/consolidate.js
Module not found: Error: Can't resolve 'plates' in '/home/user/site/frontends/node_modules/consolidate/lib'
 @ ../node_modules/consolidate/lib/consolidate.js 1402:55-72
 @ ../node_modules/consolidate/index.js
 @ ../node_modules/vue-loader/node_modules/@vue/component-compiler-utils/dist/compileTemplate.js
 @ ../node_modules/vue-loader/node_modules/@vue/component-compiler-utils/dist/index.js
 @ ../node_modules/vue-loader/lib/loaders/stylePostLoader.js
 @ ../node_modules/vue-loader/lib/loaders/pitcher.js
 @ ../node_modules/vue-loader/lib/plugin-webpack4.js
 @ ../node_modules/vue-loader/lib/plugin.js
 @ ../webpack.common.js
 @ ../webpack.dev.js
 @ ./webpack.dev.js


When I install these models manually, the corresponding error disappears, but there are too many modules.
How to bulk install missing modules?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question