gpt4 book ai didi

node.js - 在 vs2013 中部署混合应用程序时出错

转载 作者:太空宇宙 更新时间:2023-11-04 01:00:29 25 4
gpt4 key购买 nike

我一直在使用 Visual Studio Professional 2013 和 CTP2.0 构建 Cordova 混合应用程序,一切正常。然后 Visual Studio 警告我应该升级到更新 4.0 和 CTP 3.0。升级后,我无法再部署我的应用程序。构建正常,但部署失败。我尝试重新安装 VS2013,甚至将笔记本电脑重置为出厂设置。

部署时,我在输出窗口中收到以下消息:

1>------ Build started: Project: BlankCordovaApp1, Configuration: Debug Android ------
1>C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1> GeneratedJavascript= 1> C:\Users\Abel Silva\documents\visual studio 2013\Projects\BlankCordovaApp1\BlankCordovaApp
1>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: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\TCFZDSVO.K3U\packages\vs-mda
2>------ Deploy started: Project: BlankCordovaApp1, Configuration: Debug Android ------
2>Starting launch process C:\Program Files (x86)\nodejs\node.exe ""C:\Users\Abel Silva\AppData\Roaming\npm\node_modules\vs-mda\emulator.js"" --platform android --path "C:\Users\Abel Silva\documents\visual studio 2013\Projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug" --deployTarget "emulator" --language pt-PT --configuration debug
2>C:\Users\Abel:1
2>function (exports, require, module, __filename, __dirname) { ****************
2> ^
2>SyntaxError: Unexpected token *
2>
2>at Module._compile (module.js:439:25)
2>at Object.Module._extensions..js (module.js:474:10)
2>at Module.load (module.js:356:32)
2>at Function.Module._load (module.js:312:12)
2>at Function.Module.runMain (module.js:497:10)
2>at startup (node.js:119:16)
2>at node.js:906:3
2>C:\Users\Abel:1
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

最佳答案

似乎由于用户名(Abel Silva)中存在空格,VS 在调用 emulator.js 部署应用程序时添加了双引号。尝试使用不带空格的用户名。 ""**C:\Users\Abel Silva\AppData\Roaming\npm\node_modules\vs-mda\emulator.js""**

关于node.js - 在 vs2013 中部署混合应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27110202/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com