无法在科尔多瓦应用程序中添加 wp8 平台



我正在尝试在我的科尔多瓦应用程序中添加 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:Projectshellonode_modulesnpm-debug.log

wp8平台在cordova@7中被删除:JIRA问题

使用cordova@7您必须使用windows平台:

cordova platform add windows
cordova build windows -- --appx=8.1-phone

需要 64 位版本的 Windows 8 专业版,安装磁盘或 ISO 磁盘映像文件。专业版是运行设备仿真程序所必需的。

相关内容

最新更新