2017-07-17 178 views
1

我想在我的科尔多瓦的应用程序添加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:\Projects\hello\node_modules\npm-debug.log 
+1

'也许这可以是一个连接problem'我觉得这是你的情况。对我来说它正在工作。有时'npm注册表'不可用。不断尝试... – Beat

+0

我尝试检查https://registry.npmjs.org/wp8,它是深藏不露。如果我们检查https://registry.npmjs.org/android或https://registry.npmjs.org/ios它显示了正确的JSON数据但WP8它显示在你找到的注册表空{} –

+0

的包是不是与'cordova'相同。他们可以通过'科尔多瓦 - ios','科尔多瓦 - android'甚至'科尔多瓦,wp8'可以找到... – Beat

回答

0

需要64位版本的Windows 8 Pro,无论是安装磁盘还是ISO磁盘映像文件。专业版需要运行的设备模拟器。

0

wp8平台在科尔多瓦下降@ 7:JIRA issue

随着科尔多瓦@ 7,你必须使用windows平台:

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