npm run serve的时候出现错误
warning in (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:
(有多个模块的名称仅在大小写上有所不同。在具有其他区分大小写的文件系统上编译时,这可能导致意外行为)
* ****\node_modules\webpack\buildin\global.js
Used by 2 module(s), i. e.
****\node_modules\sockjs-client\dist\sockjs.js
百度说是node-modules中的包删除后重装就行,没试。
google到github上说是路径原因,大小写没有区分而产生的错误。
(原文链接点击蓝字)
然后回头看了下,确实在vs code中我cd 的路径是小写路径,但是我的文件夹是大写的,cd的时候偷懒了,vs code进来之后同样是小写路径,然后编译就报错了,重新cd ../ 到根目录,然后重新cd到子目录,注意文件夹命名大小写,重新编译,就没报错了。
github上有提到另一种思路是直接在cmd中cd到子目录,然后npm run serve,。试了下,发现是cmd会纠正路径的大小写。。。。