我开发了离子应用并试图将其上传到离子云。我已经检查了我的用户名和密码。每当我运行ionic upload
时,我都会收到错误消息:
Error logging in: Error: unable to verify the first certificate
Uploading app...
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
An error occurred uploading the build: TypeError: Cannot read property 'map' of undefined
TypeError: Cannot read property 'map' of undefined
at Object.getDirectUploadKey (C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:271:18)
at C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:41:21
at _fulfilled (C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:749:13)
at C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:509:49
at flush (C:\Users\jhamn\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Cannot read property 'map' of undefined (CLI v2.2.1)
Your system information:
ordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.0
Xcode version: Not installed
我已经尝试使用以下命令将ssl设置为false:
npm config set strict-ssl false
我还通过此链接在nodejs中找到了一个可能的解决方案:https://www.npmjs.com/package/ssl-root-cas
但我不知道如何在nodejs中实现ssl-root-cas。