在使用命令行为cordova项目添加windows8平台时,需要检查错误显示,它告诉'check reqs不被识别为外部命令的内部' CLI命令如下所示。这里我使用的是Windows8操作系统和Microsoft Visual Studio 2012。
C:\akhil>cordova create sampleDir com.hifx.samplePro samplePro
Creating a new cordova project with name "samplePro" and id "com.hifx.samplePro"
at location "C:\akhil\sampleDir"
C:\akhil>cd sampleDir
C:\akhil\sampleDir>cordova platform add windows8
Checking windows8 requirements...
Error: Requirements check failed: '"C:\Users\akhil\.cordova\lib\windows8\cordova
\3.4.0\windows8\bin\check_reqs"' is not recognized as an internal or external co
mmand,
operable program or batch file.
at C:\Users\akhil\AppData\Roaming\npm\node_modules\cordova\src\metadata\wind
ows8_parser.js:64:22
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
C:\akhil\sampleDir>