踩坑了,当前目录问题

vscode
的angularjs2.0项目,编译后有警告:
-----------------------------------------------------------------------
WARNING in (webpack)/buildin/module.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:\LSRM\LSRM.App\Web.App\node_modules\.2.1.0-beta.22@webpack\buildin\module.js
    Used by 2 module(s), i. e.
    E:\LSRM\LSRM.App\Web.App\node_modules\.1.4.1@punycode\punycode.js
* e:\LSRM\LSRM.App\Web.App\node_modules\.2.1.0-beta.22@webpack\buildin\module.js
    Used by 2 module(s), i. e.
    e:\LSRM\LSRM.App\Web.App\node_modules\moment\moment.js
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  7.12 kB       0       
webpack: Compiled with warnings.
--------------------------------------------------------------------
原因是当前目录为: e:\LSRM\LSRM.App\Web.App\
应为: E:\LSRM\LSRM.App\Web.App\  注意,驱动器符E盘应为大写
所以:
tasks.json 改为:
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "command": "cmd",
    "isShellCommand": true,
    "args": ["/c C: && cd E:\\LSRM\\LSRM.App\\Web.App && E: && ng serve --host 127.0.0.1 --port 2016 --live-reload-port 49153"],
    "showOutput": "always"
}

原理,当前目录切换回C盘,更改E盘当前目录,切换回E盘,解决问题。

此问题google,百度都不好使

 

 

转载于:https://www.cnblogs.com/heguo/p/6573863.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值