none
1>MDAVSCLI : error : Cannot find module 'q' RRS feed

  • 问题

  • I've just installed MSVS 2013 update 4 with tools for Apache Cordova CTP 3, automatically. Then I created my first project, BlankCordovaApp1, press RIPPLE, the output window showed as follow:

    1>------ 已启动生成:  项目: BlankCordovaApp1, 配置: Debug Android ------
    1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : 由于未为 TypeScript 编译器给定要编译的文件,因此该编译器将跳过编译。
    1>  GeneratedJavascript=
    1>  C:\Users\Feiyu\documents\visual studio 2013\Projects\BlankCordovaApp1\BlankCordovaApp1>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 
    1>  Your environment has been set up for using Node.js 0.10.33 (ia32) and npm.
    1>  ------ Ensuring correct global installation of package from source package directory: D:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\DBS0FGTC.0PA\packages\vs-mda
    1>MDAVSCLI : error : Cannot find module 'q'
    ========== 生成:  成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
    ========== 部署:  成功 0 个,失败 0 个,跳过 0 个 ==========

    1>MDAVSCLI : error : Cannot find module 'q'

    I've tried 

    Close Visual Studio
    Open cmd
    npm install -g [path to vs-mda example C:\Users\[user-name]\AppData\Roaming\npm\node_modules\vs-mda]

    npm install -g [path to vs-mda-targets example C:\Users\[user-name]\AppData\Roaming\npm\node_modules\vs-mda-targets]

    Open project and build

    But the command "npm install -g [C:\Users\Feiyu\AppData\Roaming\NPM\node_modules\vs-mda]" didn't work, CMD returned:

    Couldn't install ...

    Err! Error: ENOENT 

    errno 34


    • 已编辑 Fgo_Tau 2014年12月11日 11:14
    2014年12月11日 11:14

答案