0
votes

C:\Users\Atanu>node -v v10.16.0

C:\Users\Atanu>npm -v 6.9.0

C:\Users\Atanu>npm install -g newman npm ERR! path C:\Program Files\Vbrick\nodejs\node_modules.staging npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall mkdir npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Vbrick\nodejs\node_modules.staging' npm ERR! { [Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Vbrick\nodejs\node_modules.staging'] npm ERR! cause: npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Vbrick\nodejs\node_modules.staging' npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'C:\Program Files\Vbrick\nodejs\node_modules\.staging' }, npm ERR! stack: npm ERR! 'Error: EPERM: operation not permitted, mkdir \'C:\Program Files\Vbrick\nodejs\node_modules\.staging\'', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'C:\Program Files\Vbrick\nodejs\node_modules\.staging', npm ERR! parent: 'newman' } 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\Atanu\AppData\Roaming\npm-cache_logs\2020-02-20T06_37_27_595Z-debug.log

1
Try running as admin, looks like permission error: The operation was rejected by your operating systemdrd

1 Answers

0
votes

Try running the command prompt as admin.