Solucionado (ver solução)
Solucionado
(ver solução)
5
respostas

Erro ao executar o comando > npm -g install cordova

Apareceu a mensagem > npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue Com isso dá erro quando tento adicionar > cordova platform add browser Como resolvo?

5 respostas

Qual é o erro que aparece quando você tenta adicionar essa plataforma?

Só esse WARN não deveria ser problema.

Não dá nenhum erro específico na hora de adicionar a plataforma?

C:\Users\Raphael>npm -g install cordova
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\Raphael\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Raphael\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "-g" "install" "cordova"
npm ERR! node v4.4.5
npm ERR! npm  v3.9.6
npm ERR! path C:\Users\Raphael\AppData\Roaming\npm\node_modules\.staging\abbrev-d78176e2
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Raphael\AppData\Roaming\npm\node_modules\.staging\abbrev-d78176e2' -> 'C:\Users\Raphael\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Raphael\AppData\Roaming\npm\node_modules\.staging\abbrev-d78176e2' -> 'C:\Users\Raphael\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
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:\Users\Raphael\npm-debug.log
npm ERR! code 1
solução!

Algum erro com o cache do npm. Tenta:

npm -g remove cordova
npm cache clean
npm -g install cordova

Sergio, instalou. Obrigado! Antes de escrever aqui busquei o erro no google e tentei vários comandos, mas nenhum tinham me sugerido o cache clean.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software