Bonjour,


Développeur Java, j'essaye de me remettre dans le bain et découvrir toutes les nouvelles choses côté javascripts.Au fur et à mesure de mon exploration je suis tombé sur Yeoman, qui me semble être un outil très intéressant.

J'essaye de l'utiliser pour comprendre son fonctionnement, mais impossible de l'installer.

Mon environnement :

Je suis sur Windows 7 64 bits
J'utilise WebStorm ainsi que la dernière version de node.js (v0.10.31)

J'ai essayé via l'interface de webstorm et j'ai cette erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
tandard error:
npm WARN deprecated yeoman@0.9.6: The Yeoman CLI is deprecated. See http://yeoman.io/migrate.html for more info.
npm ERR! fetch failed http://github.com/yeoman/generators/archive/0.9.5.tar.gz
npm ERR! Error: 406 Not Acceptable
npm ERR!     at WriteStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\fetch.js:58:12)
npm ERR!     at WriteStream.emit (events.js:117:20)
npm ERR!     at evalmachine.<anonymous>:1609:14
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:102:5
npm ERR!     at Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>
 
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "yeoman"
npm ERR! cwd D:\WebstormProjects\test
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm WARN excluding symbolic link test\fixtures\octocat-link.png -> octocat.png
npm

sinon en ligne de commande j'ai :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
C:\Program Files\nodejs>npm i -g yo      
C:\Users\xxx\AppData\Roaming\npm\yo -> C:\Users\xxx\AppData\Roaming\npm\node_modules\yo\cli.js
 
> yo@1.2.1 postinstall C:\Users\xxx\AppData\Roaming\npm\node_modules\yo
> node ./scripts/doctor
 
 
module.js:340
    throw err;
          ^
Error: Cannot find module 'C:\Program Files\nodejs\scripts\doctor'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3
npm ERR! yo@1.2.1 postinstall: `node ./scripts/doctor`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the yo@1.2.1 postinstall script.
npm ERR! This is most likely a problem with the yo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./scripts/doctor
npm ERR! You can get their info via:
npm ERR!     npm owner ls yo
npm ERR! There is likely additional logging output above.
 
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "yo"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Program Files\nodejs\npm-debug.log
npm ERR! not ok code 0

J'ai essayé de vider le cache d'installer les modules grunt-cli bower ou encore git-cli mais ça n'a rien changé.

Si quelqu'un a une idée, ou a déjà rencontrer le problème ça m'intéresse.