DWQA QuestionsCategory: ServerCnpm has the following problems when installing webpack. How to configure webpack
qzuser asked 2 months ago

clipboard.png
In this way, it is now whether the webpack can be used and how to complete the installation and normal use of the webpack! Please give me some advice.,This is webpack 4.0. You need to install webpack cli globally
According to his tips, NPM install webpack cli – D is also useless

npm install webpack-cli -g

,cnpm install -g [email protected]
The online novice tutorial should be for V3, so you should install v3

2 Answers
Sky shadow answered 2 months ago

This is webpack 4.0. You need to install webpack cli globally
According to his tips, NPM install webpack cli – D is also useless

npm install webpack-cli -g
Suinaiguo answered 2 months ago

cnpm install -g [email protected]
The online novice tutorial should be for V3, so you should install v3