[Vue] install vuex, error: eperm: operation not permitted, rename

Vue vuex installed in Vue, error:

npm ERR! path F:\fristvue\node_modules\vue-loader
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'F:\fristvue\node_modules\vue-loader' -> 'F:\fristvue\node_modules\.vue-loader.DELETE'
npm ERR!  { [Error: EPERM: operation not permitted, rename 'F:\fristvue\node_modules\vue-loader' -> 'F:\fristvue\node_modules\.vue-loader.DELETE']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, rename 'F:\fristvue\node_modules\vue-loader' -> 'F:\fristvue\node_modules\.vue-loader.DELETE'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'rename',
npm ERR!      path: 'F:\\fristvue\\node_modules\\vue-loader',
npm ERR!      dest: 'F:\\fristvue\\node_modules\\.vue-loader.DELETE' },
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, rename \'F:\\fristvue\\node_modules\\vue-loader\' -> \'F:\\fristvue\\node_modules\\.vue-loader.DELETE\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'rename',
npm ERR!   path: 'F:\\fristvue\\node_modules\\vue-loader',
npm ERR!   dest: 'F:\\fristvue\\node_modules\\.vue-loader.DELETE',
npm ERR!   parent: 'fristvue' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-04-07T11_22_51_179Z-debug.log

solution:
1. Run command
under administrator permissions to start selecting command prompt (administrator)
2. Cleans up the cache
in the specified directory

npm cache clean -force

3. Reinstall

npm install vuex --save



NPM error!
NPM error! Error :EPERM: operation is not allowed. Rename
NPM +EPERM+operation+not+ suspension +rename resolves

Read More: