zoukankan      html  css  js  c++  java
  • 踩坑了,当前目录问题

    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:LSRMLSRM.AppWeb.App ode_modules.2.1.0-beta.22@webpackuildinmodule.js
        Used by 2 module(s), i. e.
        E:LSRMLSRM.AppWeb.App ode_modules.1.4.1@punycodepunycode.js
    * e:LSRMLSRM.AppWeb.App ode_modules.2.1.0-beta.22@webpackuildinmodule.js
        Used by 2 module(s), i. e.
        e:LSRMLSRM.AppWeb.App ode_modulesmomentmoment.js
    Child html-webpack-plugin for "index.html":
             Asset     Size  Chunks       Chunk Names
        index.html  7.12 kB       0       
    webpack: Compiled with warnings.
    --------------------------------------------------------------------
    原因是当前目录为: e:LSRMLSRM.AppWeb.App
    应为: E:LSRMLSRM.AppWeb.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,百度都不好使

     
  • 相关阅读:
    win10系统安装oracle11g时遇到INS-13001环境不满足最低要求
    C#文件重命名的代码
    自学MVC开发基础
    我的面试感悟-----3年工作经验的女程序员的感慨
    问心无愧,莫问前程
    Install your Application into RaspberryPi2 and automatically start up
    基于Vmware player的Windows 10 IoT core + RaspberryPi2安装部署
    MVC开发-后台开发总结
    页面长按禁止弹出选择菜单
    js检测链接(URL)是否有效
  • 原文地址:https://www.cnblogs.com/heguo/p/6573863.html
Copyright © 2011-2022 走看看