Cnpm installation of webpack has the following problems, how to configure webpack

clipboard.png
so now it is whether webpack can be used and how to complete the installation and normal use of webpack! Please give us your advice.

Feb.28,2021

cnpm install-g webpack@3

the novice tutorials on the Internet should be aimed at v3, so you should install V3


this is webpack4.0. You need to install webpack-cli globally

according to his hint, npm install webpack-cli-D is also useless

npm install webpack-cli -g
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3152c-2bd8d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3152c-2bd8d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?