簡體   English   中英

運行時找不到成功的yeoman發電機安裝嗎?

[英]Successful yeoman generator install can't be found when running yo?

當前未能學習如何使用終端作為開發工具。

嘗試通過使用yeoman搭建項目來設置MEAN堆棧。 但是,當我運行npm install -g generator-angular-fullstack它會成功安裝在這里(/ Users / xxxx / npm / lib / node_modules),然后當我運行yo angular-fullstack它說我沒有那個發電機。

我已經安裝了兩個生成器,但是即使全局安裝成功,新的生成器(angular-fullstack)也沒有添加到列表中:

mean
meanjs

這可能無關緊要,但是當我嘗試卸載這些生成器時,我收到此消息- npm WARN uninstall not installed in /Users/xxxx/npm/lib/node_modules

我想做的是:

1. install the angular-fullstack generator
2. scaffold a project using angular-fullstack

我曾嘗試卸載yeoman,npm,清除npm緩存和各種操作,但無法正常工作。 我已經在這個問題上進行了大約3個星期的工作,而我要做的就是建立並運行一個平均的項目結構。 因此,如果有人可以提供幫助,那就太好了。

作為一個菜鳥,我不想求助於Stack Overflow,但是我現在就來處理一下。 ;)

提前致謝。

更新:試圖安裝其他生成器(角度),並且也無法訪問它。 這是我在安裝時收到的消息。

~:TestMVCApp xxxx$ npm install -g generator-angular
npm WARN peerDependencies The peer dependency generator-karma@>=0.9.0 included from generator-angular will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN peerDependencies The peer dependency yo@>=1.0.0 included from generator-karma will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
generator-karma@1.0.0 /Users/xxxx/npm/lib/node_modules/generator-karma
├── sorted-object@1.0.0
├── underscore@1.8.3
└── yeoman-generator@0.19.2 (detect-conflict@1.0.0, read-chunk@1.0.1, diff@1.4.0, yeoman-welcome@1.0.1, xdg-basedir@1.0.1, user-home@1.1.1, rimraf@2.4.3, async@0.9.2, mime@1.3.4, text-table@0.2.0, class-extend@0.1.2, dargs@4.0.1, shelljs@0.4.0, debug@2.2.0, nopt@3.0.4, istextorbinary@1.0.2, cross-spawn@0.2.9, mkdirp@0.5.1, chalk@1.1.1, yeoman-assert@1.0.0, cli-table@0.3.1, run-async@0.1.0, mem-fs-editor@1.2.3, through2@0.6.5, underscore.string@3.2.2, glob@5.0.15, findup-sync@0.2.1, yeoman-environment@1.2.7, sinon@1.17.1, github-username@1.1.1, dateformat@1.0.11, pretty-bytes@1.0.4, gruntfile-editor@1.0.0, lodash@3.10.1, inquirer@0.8.5, html-wiring@1.2.0, download@4.4.0)

generator-angular@0.12.1 /Users/xxxx/npm/lib/node_modules/generator-angular
├── chalk@1.1.1 (escape-string-regexp@1.0.3, ansi-styles@2.1.0, supports-color@2.0.0, strip-ansi@3.0.0, has-ansi@2.0.0)
├── yosay@1.0.5 (ansi-regex@1.1.1, ansi-styles@2.1.0, word-wrap@1.1.0, strip-ansi@2.0.1, pad-component@0.0.1, minimist@1.2.0, taketalk@1.0.0, string-width@1.0.1, repeating@1.1.3)
├── wiredep@2.2.2 (propprop@0.3.0, minimist@1.2.0, lodash@2.4.2, chalk@0.5.1, through2@0.6.5, glob@4.5.3, bower-config@0.5.2)
└── yeoman-generator@0.16.0 (diff@1.0.8, dargs@0.1.0, isbinaryfile@2.0.4, debug@0.7.4, async@0.2.10, mime@1.2.11, rimraf@2.2.8, findup-sync@0.1.3, text-table@0.2.0, mkdirp@0.3.5, lodash@2.4.2, iconv-lite@0.2.11, underscore.string@2.3.3, shelljs@0.2.6, class-extend@0.1.2, chalk@0.4.0, glob@3.2.11, file-utils@0.1.5, cheerio@0.13.1, request@2.30.0, inquirer@0.4.1, download@0.1.19)

首先,您需要全局安裝yeoman和以下必需的工具:npm install -g yo bower grunt-cli gulp

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM