安装了Hybrid-App CTP。下载了Backbone样本。将我的构建设置为Windows phone和Emulator 720 P并尝试构建。我收到这个错误:
1>------ Build started: Project: BackboneTodo, Configuration: Debug Windows Phone ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(90,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1> Your environment has been set up for using Node.js 0.10.29 (x64) 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\n4ltjwgz.cbl\packages\vs-mda
1> '"C:\Users\<me>\AppData\Roaming\npm\node_modules\vs-mda\vs-cli"' is not recognized as an internal or external command,
1> operable program or batch file.
1>C:\Users\<me>\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets(68,5): error MSB3073: The command ""C:\Users\<me>\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" build --platform "Windows Phone" --configuration "Debug" --projectDir . --projectName "BackboneTodo" --buildServerUrl "" --buildTarget "PhoneEmulator720P"" exited with code 9009.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我的vs-cli
目录中不存在\npm\node_modules\vs-mda
。我试图修复CTP安装没有运气。
关于如何正确安装这个的任何其他想法?
答案 0 :(得分:0)
您的Node安装似乎已旧或已损坏。请尝试以下步骤:
1)删除CTP(这可能需要一段时间)
2)删除node.js
3)删除用户\ name \ appdata \ roaming \ npm和users \ name \ appdata \ roaming \ npm-cache
4)删除users \ appdata.cordova
5)重新安装CTP
6)打开示例应用程序并构建
此时重新安装npm,vs-cli.cmd就在那里。在我的情况下,没有空格,我确实安装了这些SDK。
答案 1 :(得分:0)
我已移除C:\Users\Miquel\AppData\Roaming\npm\node_modules\vs-mda\node_modules\*.*
和C:\Users\Miquel\AppData\Roaming\npm-cache\*.*
然后在cmd中我去了C:\Users\Miquel\AppData\Roaming\npm\node_modules\vs-mda
并跑了:
npm install