无法在Cordova应用程序中添加WP8平台 [英] Not able to add wp8 platform in cordova app

查看:98
本文介绍了无法在Cordova应用程序中添加WP8平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的cordova应用程序中添加wp8平台,但是当我运行命令时:

I am trying to add wp8 platform in my cordova app but when I run the command :

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

推荐答案

wp8平台被放置在cordova @ 7中:

wp8 platform was dropped in cordova@7: JIRA issue

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

With cordova@7 you have to use windows platform:

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

这篇关于无法在Cordova应用程序中添加WP8平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆