前一天安装好的Vue CLI,第二天运行时报错:
WARNING Compiled with 3 warnings 9:36:46 ├F10: AM┤
warning in E:/mySite/01/node_modules/webpack/buildin/global.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* E:\mySite\01\node_modules\webpack\buildin\global.js
Used by 2 module(s), i. e.
E:\mySite\01\node_modules\punycode\punycode.js
* E:\mysite\01\node_modules\webpack\buildin\global.js
Used by 1 module(s), i. e.
E:mysite\01\node_modules\vue\dist\vue.esm.js
原因:
VSCode终端cd到文件夹时不区分大小写,原本项目名称为mySite,但是cd mysite也没有报错提示找不到路径,后面执行npm run dev 就报上面的警告。
解决:
重新输入正确的项目名称,cd mySite,执行npm run dev项目正常启动。