Estoy intentando seguir un tutorial y una de las cosas que debo hacer es npm install -g generador-meanjs. Después de ejecutarlo, aparece el siguiente error:
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\zach\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "generator-meanjs"
npm ERR! node v4.2.3
npm ERR! npm v3.5.1
npm ERR! path C:\Users\zach\AppData\Roaming\npm\node_modules\generator-meanjs\node_modules\yeoman-generator\node_modules\download\node_modules\gulp-decompress\node_modules\decompress\node_modules\decompress-tarbz2\node_modules\seek-bzip\node_modules\commander
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\zach\AppData\Roaming\npm\node_modules\generator-meanjs\node_modules\yeoman-generator\node_modules\download\node_modules\gulp-decompress\node_modules\decompress\node_modules\decompress-tarbz2\node_modules\seek-bzip\node_modules\commander' -> 'C:\Users\zach\AppData\Roaming\npm\node_modules\generator-meanjs\node_modules\commander'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\zach\AppData\Roaming\npm\node_modules\generator-meanjs\node_modules\yeoman-generator\node_modules\download\node_modules\gulp-decompress\node_modules\decompress\node_modules\decompress-tarbz2\node_modules\seek-bzip\node_modules\commander' -> 'C:\Users\zach\AppData\Roaming\npm\node_modules\generator-meanjs\node_modules\commander'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\WINDOWS\system32\npm-debug.log
npm ERR! code 1
Me dice que cambie el nombre
C:\Users\zach\AppData\Roaming\npm\node_modules\generator-meanjs\node_modules\yeoman-generator\node_modules\download\node_modules\gulp-decompress\node_modules\decompress\node_modules\decompress-tarbz2\node_modules\seek-bzip \node_modules\commander' ->
pero no sé cómo cambiarle el nombre. ¿Alguien puede aclararme este error?
También tiene un registro de depuración pero es extremadamente largo.
Respuesta1
Resolví esto eliminando la carpeta generador-meanjs y reinstalándola como administrador usando Windows PowerShell.