Pessoal,
Estou usando o Windows 10 e, usando o prompt de Administrator, tentei rodar npm install -g nodemon
. Porém, sempre aparece um erro de EPERM
.
Também tentei npm install nodemon
(sem o -g
), mas não adiantou. Alguém teve este problema?
5739 verbose stack Error: EPERM: operation not permitted, unlink 'C:\Users\Elton\Desktop\Node\casa\node_modules\fsevents\node_modules\aproba\package.json'
5740 verbose cwd C:\Users\Elton\Desktop\Node\casa
5741 verbose Windows_NT 10.0.15063
5742 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Elton\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "nodemon"
5743 verbose node v8.4.0
5744 verbose npm v5.4.0
5745 error path C:\Users\Elton\Desktop\Node\casa\node_modules\fsevents\node_modules\aproba\package.json
5746 error code EPERM
5747 error errno -4048
5748 error syscall unlink
5749 error Error: EPERM: operation not permitted, unlink 'C:\Users\Elton\Desktop\Node\casa\node_modules\fsevents\node_modules\aproba\package.json'
5749 error { Error: EPERM: operation not permitted, unlink 'C:\Users\Elton\Desktop\Node\casa\node_modules\fsevents\node_modules\aproba\package.json'
5749 error stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\Elton\\Desktop\\Node\\casa\\node_modules\\fsevents\\node_modules\\aproba\\package.json\'',
5749 error errno: -4048,
5749 error code: 'EPERM',
5749 error syscall: 'unlink',
5749 error path: 'C:\\Users\\Elton\\Desktop\\Node\\casa\\node_modules\\fsevents\\node_modules\\aproba\\package.json' }
5750 error Please try running this command again as root/Administrator.
5751 verbose exit [ -4048, true ]