Cannot run: "ionic package build android"


#1

Hi guys, I’m trying to build my application to Ionic Cloud Package with this code: “ionic package build android”, but I’m getting this error message:

TypeError: Cannot read property ‘path’ of undefined
at FormData._multiPartHeader (C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\form-data\lib\form_data.js:151:34)
at FormData.append (C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\form-data\lib\form_data.js:39:21)
at Object.getDirectUploadKey (C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:249:8)
at C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\upload.js:40:21
at _fulfilled (C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:749:13)
at C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:509:49
at flush (C:\Users\thiag\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:67:7)

Cannot read property ‘path’ of undefined (CLI v2.1.4)


My system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.36
OS:
Node Version: v6.9.1


I don’t know what’s wrong, anybody can help me with this?