首页 > 其他 > 详细

npm run dev 启动项目后,出现编译警告 Compiled with 2 warnings

时间:2019-06-05 18:10:49      阅读:1671      评论:0      收藏:0      [点我收藏+]

运行npm run dev 启动项目后,出现如下 Warning

[2019-06-05T17:13:16.265] [INFO] - WARNING Compiled with 2 warnings
              17:13:16
[2019-06-05T17:13:16.265] [INFO] -
[2019-06-05T17:13:16.268] [INFO] - warning in ./node_modules/es6-promise/dist/es6-promise.js
[2019-06-05T17:13:16.268] [INFO] -
[2019-06-05T17:13:16.269] [INFO] - 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:\RAIS\rais-project\node_modules\es6-promise\dist\es6-promise.js
Used by 11 module(s), i. e.
E:\RAIS\rais-project\node_modules\babel-polyfill\node_modules\regenerator-runtime\runtime.js
* e:\RAIS\rais-project\node_modules\es6-promise\dist\es6-promise.js
Used by 1 module(s), i. e.
e:\RAIS\rais-project\node_modules\_@ckeditor_ckeditor5-build-classic@12.1.0@@ckeditor\ckeditor5-build-classic\build\ckeditor.js
[2019-06-05T17:13:16.269] [INFO] -
[2019-06-05T17:13:16.270] [INFO] - warning in ./node_modules/process/browser.js
[2019-06-05T17:13:16.270] [INFO] -
[2019-06-05T17:13:16.271] [INFO] - 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:\RAIS\rais-project\node_modules\process\browser.js
Used by 13 module(s), i. e.
E:\RAIS\rais-project\node_modules\vue-localstorage\dist\vue-local-storage.js
* e:\RAIS\rais-project\node_modules\process\browser.js
Used by 1 module(s), i. e.
e:\RAIS\rais-project\node_modules\es6-promise\dist\es6-promise.js
技术分享图片

问题原因:

windows下盘符的大小写导致的。

实际上,上面显示的警告,是指引用文件的时候大小写错了,有时候是盘符,有时候是引入文件的时候插件名

我打开VS Code 在cmd里运行的时候,自动定位到项目地址,盘符是大写,改成小写的e盘符就没问题了。

技术分享图片

 

npm run dev 启动项目后,出现编译警告 Compiled with 2 warnings

原文:https://www.cnblogs.com/JasmineLily/p/10981051.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!