Getting error operation not permitted on npm install

What I Wanted to Do

I want to install packages in my angular application - using npm install

What Happened Instead

Giving error 'Error: EPERM: operation not permitted,

Reproduction Steps

Details

Windows 10

Here is the npm-debug.log contents –
npm ERR! path C:\Users\Rupesh\Desktop\Dream\Tapinweb\node_modules.staging@types\jasmine-8a93759c\index.d.ts
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat ‘C:\Users\Rupesh\Desktop\Dream\Tapinweb\node_modules.staging@types\jasmine-8a93759c\index.d.ts’
npm ERR! { [Error: EPERM: operation not permitted, lstat ‘C:\Users\Rupesh\Desktop\Dream\Tapinweb\node_modules.staging@types\jasmine-8a93759c\index.d.ts’]
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, lstat ‘C:\Users\Rupesh\Desktop\Dream\Tapinweb\node_modules.staging@types\jasmine-8a93759c\index.d.ts’
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘lstat’,
npm ERR! path:
npm ERR! ‘C:\Users\Rupesh\Desktop\Dream\Tapinweb\node_modules\.staging\@types\jasmine-8a93759c\index.d.ts’ },
npm ERR! stack:
npm ERR! ‘Error: EPERM: operation not permitted, lstat ‘C:\Users\Rupesh\Desktop\Dream\Tapinweb\node_modules\.staging\@types\jasmine-8a93759c\index.d.ts’’,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘lstat’,
npm ERR! path:
npm ERR! ‘C:\Users\Rupesh\Desktop\Dream\Tapinweb\node_modules\.staging\@types\jasmine-8a93759c\index.d.ts’,
npm ERR! parent: ‘front-end-tap-in’ }
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).

Platform Info

node -v v10.6.0

$ npm --versions
<!-- paste output here -->
6.6.0
$ node -p process.platform
<!-- paste output here -->
win32

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.