Olá pessoal!
Estou fazendo o curso e uma POC para meu trabalho com angular 2 (fontes do quickstart do site) e, em ambos os casos, ocorre o erro abaixo no meio do caminho.
'''E:\Projetos\workspace\estudos\alura\alurapic\client>npm install npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\wallace\AppData\Local\Temp\npm-3564-d729d533\registry.npmjs.org\elegant-spinner-\elegant-spinner-1.0.1.tgz.2821036261' -> 'C:\Users\wallace\AppData\Local\Temp\npm-3564-d729d533\registry.npmjs.org\elegant-spinner-\elegant-spinner-1.0.1.tgz' npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v7.5.0 npm ERR! npm v4.1.2
npm ERR! tarball.destroy is not a function npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\wallace\AppData\Local\Temp\npm-3564-d729d533\registry.npmjs.org\wordwrap-\wordwrap-1.0.0.tgz.4283005033' -> 'C:\Users\wallace\AppData\Local\Temp\npm-3564-d729d533\registry.npmjs.org\wordwrap-\wordwrap-1.0.0.tgz' npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v7.5.0 npm ERR! npm v4.1.2
npm ERR! tarball.destroy is not a function npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\wallace\AppData\Local\Temp\npm-3564-d729d533\registry.npmjs.org\typings-core-\typings-core-1.6.1.tgz.4115149028' -> 'C:\Users\wallace\AppData\Local\Temp\npm-3564-d729d533\registry.npmjs.org\typings-core-\typings-core-1.6.1.tgz' npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v7.5.0 npm ERR! npm v4.1.2
npm ERR! tarball.destroy is not a function '''
Já procurei na internet e achei duas soluções, mas nenhuma deu certo.
Uma delas era executar o comando "npm clean cache" e a outra apagar todos os diretórios iniciados com "npm". Nenhuma deu certo. Alguém sabe o que pode ser? Node instalado, última versão: node v7.5.0 e npm v4.1.2.
OBS: Tentei com node 5.x, 4.x, 6.x e nada.
Desde já agradeço!
Wallace