win7下无法安装yeoman

发布于 2022-09-01 13:13:16 字数 3733 浏览 16 评论 0

在win7系统下(64位),安装yeoman出现状况。grunt和bower都安装成功。

C:\Users\Administrator>npm install -g yo

spawn-sync@1.0.11 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_
modules\yo\node_modules\cross-spawn\node_modules\spawn-sync
node postinstall

C:\Users\Administrator\AppData\Roaming\npm\yo -> C:\Users\Administrator\AppData\
Roaming\npm\node_modules\yo\lib\cli.js

yo@1.4.7 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\y
o
yodoctor

Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ Node.js version
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
√ npm version

Everything looks all right!
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\yeoman requires bower@'~0.3.0' but will load
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\bower,
npm WARN unmet dependency which is version 1.4.1
yo@1.4.7 C:\Users\Administrator\AppData\Roaming\npm\node_modules\yo
├── titleize@1.0.0
├── array-uniq@1.0.2
├── figures@1.3.5
├── user-home@1.1.1
├── opn@1.0.2
├── humanize-string@1.0.1 (decamelize@1.0.0)
├── async@1.3.0
├── yeoman-character@1.0.1 (supports-color@1.3.1)
├── string-length@1.0.0 (strip-ansi@2.0.1)
├── sort-on@1.2.2 (arrify@1.0.0, dot-prop@2.2.0)
├── chalk@1.1.0 (escape-string-regexp@1.0.3, supports-color@2.0.0, ansi-style
s@2.1.0, has-ansi@2.0.0, strip-ansi@3.0.0)
├── findup@0.1.5 (commander@2.1.0, colors@0.6.2)
├── repeating@1.1.3 (is-finite@1.0.1)
├── meow@3.3.0 (object-assign@3.0.0, minimist@1.1.1, indent-string@1.2.1, cam
elcase-keys@1.0.0)
├── yosay@1.0.4 (ansi-regex@1.1.1, ansi-styles@2.1.0, word-wrap@1.0.3, strip-
ansi@2.0.1, pad-component@0.0.1, taketalk@1.0.0, minimist@1.1.1)
├── root-check@1.0.0 (sudo-block@1.2.0, downgrade-root@1.1.0)
├── configstore@1.2.0 (os-tmpdir@1.0.1, object-assign@3.0.0, graceful-fs@4.1.
2, uuid@2.0.1, osenv@0.1.3, user-home@2.0.0, xdg-basedir@2.0.0, mkdirp@0.5.1)
├── update-notifier@0.5.0 (is-npm@1.0.0, latest-version@1.0.1, semver-diff@2.
0.0)
├── npm-keyword@1.2.0 (registry-url@3.0.3)
├── package-json@1.2.0 (registry-url@3.0.3)
├── got@3.3.0 (lowercase-keys@1.0.0, is-stream@1.0.1, timed-out@2.0.0, is-red
irect@1.0.0, prepend-http@1.0.1, object-assign@2.1.1, nested-error-stacks@1.0.0,
statuses@1.2.1, infinity-agent@2.0.3, duplexify@3.4.2, read-all-stream@2.2.0)
├── fullname@1.1.0 (npmconf@2.1.2)
├── cross-spawn@0.4.1 (lru-cache@2.6.5, spawn-sync@1.0.11)
├── yeoman-environment@1.2.6 (log-symbols@1.0.2, escape-string-regexp@1.0.3,
diff@1.4.0, text-table@0.2.0, untildify@2.1.0, debug@2.2.0, mem-fs@1.1.0, globby
@2.1.0, grouped-queue@0.3.0)
├── insight@0.6.0 (object-assign@2.1.1, lodash.debounce@3.1.1, async@0.9.2, o
s-name@1.0.3, tough-cookie@1.2.0, request@2.58.0)
├── lodash@3.10.0
├── inquirer@0.8.5 (ansi-regex@1.1.1, cli-width@1.0.1, through@2.3.8, readlin
e2@0.1.1, rx@2.5.3)
└── yeoman-doctor@1.4.0 (object-values@1.0.0, log-symbols@1.0.2, each-async@1
.1.1, semver@4.3.6, bin-version-check@2.1.0, twig@0.8.2)

C:\Users\Administrator>yo -v
? 'Allo! What would you like to do?
Run a generator
Bower
──────────────
Update your generators
Install a generator

Find some help
Get me out of here!
──────────────

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

儭儭莪哋寶赑 2022-09-08 13:13:16

为啥我感觉你已经安装好了。。。
接下来安装一下相应的生成器就可以生成目录结构了

npm install -g generator-webapp
npm install -g generator-angular
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文