我有1,5年前製作的簡單cordova項目。 幾個月前,我建立它到Android和它的工作。cordova ios build plugin無法恢復
現在,我嘗試建立它適用於iOS,但科爾多瓦建設的ios失敗:
Discovered plugin "InAppBrowser" in config.xml. Adding it to the project
Failed to restore plugin "InAppBrowser" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/InAppBrowser
Discovered plugin "Network Information" in config.xml. Adding it to the project
Failed to restore plugin "Network Information" from config.xml. You might need to try adding it again. Error: Error: Invalid package.json
Building project: /Users/user1/projectname/platforms/ios/projectname.xcworkspace
的Macbook,塞拉利昂時,Xcode 8.1
NPM版本 {NPM: '3.10.9', 戰神: '1.10.1-DEV', http_parser: '2.7.0', ICU:'57 0.1' , 模塊: '48', 節點: '6.9.2', OpenSSL的: '1.0.2j', uv:'1.9.1', v8:'5.1.281.88', zlib:和 '1.2.8'}
科爾多瓦版本6.5.0
在我的config.xml中,它說:
- >
我註釋掉了第一個,但第二個也不工作
謝謝!這工作。也更新npm到最新。 –