Getting error when ionic cordova build android command is hitting


#1

EPERM: operation not permitted, rename ‘C:\Users\lenovo.config\configstore\update-notifier-cordova.json.2928666105’ -> ‘C:\Users\lenovo.config\configstore\update-notifier-cordova.json’


#2

Your problem is probably with npm, something to do with permissions and files. This happens quite often and is almost impossible to successfully debug (at least here in the forum).

One solution: Uninstall your node, install nvm (or nvm-windows if you are on Windows), install a new node (which includes npm) with this, then install ionic and cordova again and try your command again. The problem should be gone.