npm run dev 出现警告

Posted it-ren

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm run dev 出现警告相关的知识,希望对你有一定的参考价值。

 1 WARNING in ./node_modules/[email protected]@webpack/buildin/global.js
 2 There are multiple modules with names that only differ in casing.
 3 This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
 4 Use equal casing. Compare these module identifiers:
 5 * E:\Project\webpack\node_modules\[email protected]@webpack\buildin\global.js
 6     Used by 1 module(s), i. e.
 7     E:\Project\webpack\node_modules\[email protected]@sockjs-client\dist\sockjs.js
 8 * e:\Project\webpack\node_modules\[email protected]@webpack\buildin\global.js
 9     Used by 1 module(s), i. e.
10     e:\Project\webpack\node_modules\[email protected]@punycode\punycode.js
11  @ ./node_modules/[email protected]@webpack/buildin/global.js
12  @ ./node_modules/[email protected]@sockjs-client/dist/sockjs.js
13  @ ./node_modules/[email protected]@webpack-dev-server/client/socket.js
14  @ ./node_modules/[email protected]@webpack-dev-server/client?http://localhost:8080
15  @ multi ./node_modules/[email protected]@webpack-dev-server/client?http://localhost:8080 ./main.js

把node_modules包删除,然后重新安装一下

以上是关于npm run dev 出现警告的主要内容,如果未能解决你的问题,请参考以下文章

npm run dev 报错:missing script:dev

尝试 Laravel jetstream 但在“npm run dev”上出现错误

vuejs中执行npm run dev出现页面cannot GET/问题

如何解决 npm run dev

npm run dev出现cpu占用过高的情况,是最近几天才会出现这种情况,用360,腾讯管家杀毒也不行(vscode)

npm run dev报错解决方案