Ionic cordova build --release android error?


#1

$ ionic cordova build --release android
> cordova build android --release
C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:70
** throw err;**
** ^**

Error: EPERM: operation not permitted, rename ‘C:\Users\User.config\configstore\cordova-config.json.1292008375’ -> 'C:\Users\User.config\configstore\cordova-config.json’
** at Object.fs.renameSync (fs.js:788:18)**
** at Function.writeFileSync [as sync] (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\write-file-atomic\index.js:124:8)**
** at Configstore.set (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:63:21)**
** at new Configstore (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:28:11)**
** at Object. (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\src\cli.js:30:12)**
** at Module._compile (module.js:649:30)**
** at Object.Module._extensions…js (module.js:660:10)**
** at Module.load (module.js:561:32)**
** at tryModuleLoad (module.js:501:12)**
** at Function.Module._load (module.js:493:3)**
[ERROR] An error occurred while running cordova build android --release (exit code 1).