2017-07-17 175 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