backgroundI want to check the webpack version, but executing webpack -v reports an error SolutionStep 1: Run the command npm list --depth=0 -g to check the compatibility of webpack, webpack-cli and other versionsFor example, the above prompt means that you have installed [email protected], but your webpack version does not match (prompts that the version is too low). You need to install a version above v4.37.0, or directly install v5.0.0 (for example, directly install v4.37.0: npm install -g [email protected]) Step 2: Run the command npm list --depth=0 -g again to checkAt this point, the detection has no errors, indicating that the webpack and webpack-cli versions have matched Step 3: Execute webpack -v and still report an errorRun npm init -y to automatically configure package.json, then execute webpack -v to view the version normally. Related links webpack -v reports an error Webpack builds Vue environment error Mac node delete and reinstall Webpack & Webpack-cli After successful installation, check webpack -v error This is the end of this article about webpack -v error solution. For more relevant webpack -v error solution content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: How to install Nginx in a specified location in Centos system
>>: Implementing add, delete, modify and query operations on MySQL based on sqlalchemy
Optimize the fastcgi configuration file fcgiext.i...
[LeetCode] 182.Duplicate Emails Write a SQL query...
Links to the current page. ------------------- Com...
The author recently encountered a performance bot...
1. Prepare the environment (download nodejs and s...
I reinstalled the computer and installed the late...
This article example shares the specific code for...
Some fault code tables use the following design p...
Table of contents Achieve results Rolling load kn...
1. Statistics of PV and IP Count the PV (Page Vie...
Environment: (docker, k8s cluster), continue with...
In the previous article, after using openssl to g...
Business requirements One of the projects I have ...
The fd command provides a simple and straightforw...
Linux is generally used as a server, and the serv...