Probléme d'installation de Cordova Ionic avec NPM

Par syphax_dev, il y a 10 ans


Salut tout le monde .

bah, j'ai un probléme d'installation de cordova sur ma machine Windows 8.1 x64 bits en utilisant le NodeJS v5.2.0 et NPM v3.5.1

L'erreur est le suivant :

C:\Users\Crazy>npm install -g cordova C:\vendor\js └── (empty) npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\vendor\js\node_module s\npm\bin\npm-cli.js" "install" "-g" "cordova" npm ERR! node v5.2.0 npm ERR! npm v3.5.1 npm ERR! path C:\vendor\js\node_modules.staging\has-unicode-561d5218cc54ead8cd3 becf382923f01 npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename 'C:\vendor\js\node_mod ules.staging\has-unicode-561d5218cc54ead8cd3becf382923f01' -> 'C:\vendor\js\nod e_modules\cordova\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_m odules\has-unicode' npm ERR! enoent ENOENT: no such file or directory, rename 'C:\vendor\js\node_mod ules.staging\has-unicode-561d5218cc54ead8cd3becf382923f01' -> 'C:\vendor\js\nod e_modules\cordova\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_m odules\has-unicode' 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\Crazy\npm-debug.log npm ERR! code 1

Est ce qu'il y'as quelqu'un qui peut m'expliquer et m'aider.Merçi d'avance :p

6 réponses

Grafikart, il y a 10 ans

tu lance bien la commande en moe administrateur ? Tu as essayé de downgrade vers npm2 ?

syphax_dev, il y a 10 ans

oui j'execute en mode Administrateur, et je crois que j'ai même essayer avec la v2 !

Benjamin Derepas, il y a 10 ans

En faisant une petit recherche sur l'erreur 4058 j'ai peut être trouvé une réponse qui pourrai t'aider sur stackoverflow.
Il se peut que le problème vienne du fichier package.json, mais étant donné que je ne connait pas Ionic je te laisse regarder ici

syphax_dev, il y a 10 ans

@Benjamin : Ok Merçi beaucoup pour ton aide ;)

syphax_dev, il y a 10 ans

@jimibi : j'ai essayé la commande mais le même probléme !