我使用PhoneGap CLI創建了Windows Phone 8項目。無法使用Phonegap CLI更新windows phone 8項目
我通過致電phonegap build wp8
成功建立了該項目。但是,我在更新項目時遇到了一些問題。
C:\Users\stan\Desktop\CordovaLibraryProject>phonegap platform update wp8
[phonegap] updating Windows Phone 8 platform...
[error] Update script failed: Error: Command failed: Cannot read non-existant
file : C:\Users\stan\.cordova\lib\wp\cordova\3.3.0\wp8\VERSION
Cannot read non-existant file : C:\Users\stan\.cordova\lib\wp\cordova\3.3.0\w
p8\VERSION
事實上,「VERSION」實際上是在C:\Users\stan\.cordova\lib\wp\cordova\3.3.0
之下。我試圖手動將它移動到C:\Users\stan\.cordova\lib\wp\cordova\3.3.0\wp8
。然後我得到一個新的錯誤。
C:\Users\stan\Desktop\CordovaLibraryProject>phonegap platform update wp8
[phonegap] updating Windows Phone 8 platform...
[error] Update script failed: Error: Command failed: Error : Could not copy f
ile/folder because it doesn't exist.
File/Folder : C:\Users\stan\.cordova\lib\wp\cordova\3.3.0\wp8\templates
\standalone\cordova
Error : Could not copy file/folder because it doesn't exist.
File/Folder : C:\Users\stan\.cordova\lib\wp\cordova\3.3.0\wp8\templates
\standalone\cordova
有下C:\Users\ss13216\.cordova\lib\wp\cordova\3.3.0\wp8\templates
之後,我放棄了沒有命名的獨立文件夾。
PhoneGap或我做錯了什麼?