安装 yeoman失败。。 求解

来源:2-2 Yeoman, Bower, Grunt简介及安装

Silence_o

2015-07-26 11:49

http://img.mukewang.com/55b4589a000169a209060621.jpg

spawn-sync@1.0.13 postinstall e:\life\nodejs\node_global\node_modules\yo\node_modules\cross-spawn\node_modul
s\spawn-sync
node postinstall

module.js:338
throw err;
^
Error: Cannot find module 'E:\life\code\postinstall'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\life\nodejs\\node.exe" "E:\life\nodejs\node_modules\npm\bin\npm-cli.js" "install"
yo" "-g"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE

npm ERR! spawn-sync@1.0.13 postinstall: node postinstall
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spawn-sync@1.0.13 postinstall script 'node postinstall'.
npm ERR! This is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\life\nodejs\npm-debug.log


写回答 关注

1回答

  • AnnatarHe
    2015-07-26 21:09:45

    试试先安装postinstall吧

    npm install -g postinstall
    npm install -g yo

    我刚刚去google了一下,没找到你这个问题的答案。


    顺便恬不知耻地问一句:

    你的命令行工具是什么

    Thinke... 回复Silenc...

    mini安装报错,你是直接点击exe安装的吗

    2015-09-04 22:51:54

    共 3 条回复 >

Grunt-beginner前端自动化工具

通过配置Grunt自动化工具,提高您的工作效率,出乎您的想象

60388 学习 · 408 问题

查看课程

相似问题