无法在cordova应用程序中添加wp8平台

无法在cordova应用程序中添加wp8平台,cordova,windows-phone-8,platform,phonegap,Cordova,Windows Phone 8,Platform,Phonegap,我正在尝试在cordova应用程序中添加wp8平台,但运行命令时: cordova platform add 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. Erro

我正在尝试在cordova应用程序中添加wp8平台,但运行命令时:

cordova platform add 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

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

wp8
平台已放入cordova@7:

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

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

可能是连接问题
我想这就是你的情况。对我来说,它正在发挥作用。有时,
npm注册表
不可用。继续尝试…我尝试检查,但它没有显示任何内容。如果我们检查或它显示正确的json数据,但对于wp8,它显示空{},那么您在注册表中找到的包与
cordova
提供的包不同。它们可以通过
cordova ios
cordova android
甚至
cordova-wp8
找到…