Error: EPERM: operation not permitted, rename

0

I tried to run the ionic run android and I have the following error: I have already released all access permissions with the user.

    C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:126
                    throw e;
                    ^

Error: EPERM: operation not permitted, rename 'C:\Users\Casa\.config\configstore\update-notifier-cordova.json.3156381432' -> 'C:\Users\Casa\.config\configstore\update-notifier-cordova.json'
    at Error (native)
    at Object.fs.renameSync (fs.js:809:18)
    at Function.writeFileSync [as sync] (C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\node_modules\write-file-atomic\index.js:124:8)
    at Object.set (C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\node_modules\update-notifier\node_modules\configstore\index.js:62:21)
    at Object.Configstore.del (C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\node_modules\update-notifier\node_modules\configstore\index.js:99:11)
    at UpdateNotifier.check (C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\node_modules\update-notifier\index.js:55:15)
    at module.exports (C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\node_modules\update-notifier\index.js:124:17)
    at checkForUpdates (C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\src\cli.js:80:24)
    at cli (C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\src\cli.js:272:5)
    at C:\Users\Casa\AppData\Roaming\npm\node_modules\cordova\src\cli.js:202:16
[ERROR] An error occurred while running cordova run android (exit code 1).
    
asked by anonymous 21.02.2018 / 02:49

1 answer

1

I went to this folder C:\Users\<user>\.config\configstore\ . I clicked with the right mouse button > Properties > General, and unchecked the " Read Only (Folder Files) " checkbox.

I did this more than once while trying to build my app. Until it worked out.

    
17.07.2018 / 00:25