我正在尝试在我的cordova应用程序中添加wp8平台,但是当我运行命令时:
cordova platform add wp8
来源:https://cordova.apache.org/docs/en/latest/guide/platforms/wp8/
它显示如下错误消息:
Error: Failed to fetch platform wp8
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "wp8" "--save"
npm ERR! node v6.10.1
npm ERR! npm v3.10.10
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/wp8
npm ERR! 404
npm ERR! 404 'wp8' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! D:\Projects\hello\node_modules\npm-debug.log
答案 0 :(得分:1)
wp8
平台被放入了cordova @ 7:JIRA issue
使用cordova @ 7,您必须使用windows
平台:
cordova platform add windows
cordova build windows -- --appx=8.1-phone
答案 1 :(得分:0)
需要64位版本的Windows 8 Pro,安装磁盘或ISO磁盘映像文件。 Pro版本是运行设备模拟器所必需的。