Closed slorber closed 10 years ago
Shouldn't the command used actually be yo react-library
?
^ yep, and that's the case for every yeoman generator: you strip out the "generator-" part. Btw, codebase going through major changes. Although this wouldn't hurt that much since you're basically using generating a template.
I also tried this command and it didn't work.
As you can see the generator doesn't seem to be installed and is not listed with yo -help
sebastien@sebastien-xps:react-library$ yo react-library
Error react-library
You don't seem to have a generator with the name react-library installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 6 registered generators run yo with the `--help` option.
Weird, installs fine for me. I used to have yeoman problems and yeoman doctor
solved it. Btw, the repo is really basic right now so you can really just git clone and pull out the folder.
@slorber just wanna do a follow-up. Does it work now? If not, like I said just git clone. The repo'a not using any of the smart features from yeoman yet anyways. Sorry if it's a recent code change that caused this! Although it shouldn't be.
I don't know what's the problem. I tried to update yo and it detected some kind of error.
Here's a full log of commands I tried:
-----------------------------------------
Update available: 1.1.2 (current: 1.0.7-pre.2)
Run npm update -g yo to update
-----------------------------------------
sebastien@sebastien-xps:testyo$ npm update -g yo
npm http GET https://registry.npmjs.org/yo/latest
npm http 200 https://registry.npmjs.org/yo/latest
npm http GET https://registry.npmjs.org/yo
npm http 200 https://registry.npmjs.org/yo
npm http GET https://registry.npmjs.org/yo/1.1.2
npm http 200 https://registry.npmjs.org/yo/1.1.2
npm http GET https://registry.npmjs.org/yo/-/yo-1.1.2.tgz
npm http 200 https://registry.npmjs.org/yo/-/yo-1.1.2.tgz
npm http GET https://registry.npmjs.org/yeoman-generator
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/update-notifier
npm http GET https://registry.npmjs.org/insight
npm http GET https://registry.npmjs.org/sudo-block
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/open/0.0.4
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/findup
npm http GET https://registry.npmjs.org/shelljs
npm http 200 https://registry.npmjs.org/nopt
npm http 200 https://registry.npmjs.org/update-notifier
npm http 200 https://registry.npmjs.org/sudo-block
npm http 200 https://registry.npmjs.org/lodash
npm http 200 https://registry.npmjs.org/chalk
npm http 200 https://registry.npmjs.org/open/0.0.4
npm http GET https://registry.npmjs.org/open/-/open-0.0.4.tgz
npm http 200 https://registry.npmjs.org/yeoman-generator
npm http 200 https://registry.npmjs.org/insight
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/findup
npm http 200 https://registry.npmjs.org/shelljs
npm http 200 https://registry.npmjs.org/open/-/open-0.0.4.tgz
npm http GET https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/strip-ansi
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/configstore
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://github.com/Filirom1/nopt/tarball/master#pull-request-in-progress
npm http GET https://registry.npmjs.org/colors
npm http 200 https://registry.npmjs.org/has-color
npm http 200 https://registry.npmjs.org/ansi-styles
npm http 200 https://registry.npmjs.org/inquirer
npm http 200 https://registry.npmjs.org/strip-ansi
npm http 200 https://registry.npmjs.org/request
npm http 200 https://registry.npmjs.org/ansi-styles
npm http 200 https://registry.npmjs.org/abbrev
npm http 200 https://registry.npmjs.org/colors
npm http 200 https://registry.npmjs.org/configstore
npm http 200 https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/js-yaml
npm http GET https://registry.npmjs.org/osenv/0.0.3
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/graceful-fs
npm http 200 https://registry.npmjs.org/js-yaml
npm http 200 https://registry.npmjs.org/osenv/0.0.3
npm http GET https://registry.npmjs.org/osenv/-/osenv-0.0.3.tgz
npm http GET https://registry.npmjs.org/cli-color
npm http GET https://registry.npmjs.org/mute-stream/0.0.3
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/form-data
npm http 200 https://github.com/Filirom1/nopt/tarball/master#pull-request-in-progress
npm http GET https://registry.npmjs.org/cheerio
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/diff
npm http 200 https://registry.npmjs.org/osenv/-/osenv-0.0.3.tgz
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/isbinaryfile
npm http GET https://registry.npmjs.org/dargs
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/text-table
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/file-utils
npm http GET https://registry.npmjs.org/class-extend
npm http 200 https://registry.npmjs.org/mute-stream/0.0.3
npm http 200 https://registry.npmjs.org/cli-color
npm http 200 https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.3.tgz
npm http 200 https://registry.npmjs.org/http-signature
npm http 200 https://registry.npmjs.org/json-stringify-safe
npm http 200 https://registry.npmjs.org/tunnel-agent
npm http 200 https://registry.npmjs.org/cookie-jar
npm http 200 https://registry.npmjs.org/oauth-sign
npm http 200 https://registry.npmjs.org/node-uuid
npm http 200 https://registry.npmjs.org/mime
npm http 200 https://registry.npmjs.org/form-data
npm http 200 https://registry.npmjs.org/qs
npm http 200 https://registry.npmjs.org/aws-sign
npm http 200 https://registry.npmjs.org/rimraf
npm http 200 https://registry.npmjs.org/diff
npm http 200 https://registry.npmjs.org/underscore.string
npm http 200 https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/dargs
npm http 200 https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.3.tgz
npm http 200 https://registry.npmjs.org/iconv-lite
npm http 200 https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/es5-ext
npm http GET https://registry.npmjs.org/memoizee
npm http 200 https://registry.npmjs.org/text-table
npm http 200 https://registry.npmjs.org/cheerio
npm http 200 https://registry.npmjs.org/isbinaryfile
npm http 200 https://registry.npmjs.org/download
npm http 200 https://registry.npmjs.org/class-extend
npm http 200 https://registry.npmjs.org/file-utils
npm http GET https://registry.npmjs.org/download/-/download-0.1.10.tgz
npm http 200 https://registry.npmjs.org/glob
npm http 200 https://registry.npmjs.org/esprima
npm http 200 https://registry.npmjs.org/argparse
npm http 200 https://registry.npmjs.org/memoizee
npm http GET https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/es5-ext
npm http GET https://registry.npmjs.org/event-emitter
npm http GET https://registry.npmjs.org/next-tick
npm http 200 https://registry.npmjs.org/hawk
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/combined-stream
npm http 200 https://registry.npmjs.org/event-emitter
npm http 200 https://registry.npmjs.org/next-tick
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http 200 https://registry.npmjs.org/combined-stream
npm http 200 https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 200 https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz
npm http 200 https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz
npm http 200 https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/cryptiles
npm http 200 https://registry.npmjs.org/delayed-stream/0.0.5
npm http 200 https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.2.tgz
npm http GET https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz
npm http 200 https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz
npm http 200 https://registry.npmjs.org/cryptiles
npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz
npm http 200 https://registry.npmjs.org/sntp
npm http 200 https://registry.npmjs.org/hoek
npm http 200 https://registry.npmjs.org/boom
npm http 200 https://registry.npmjs.org/download/-/download-0.1.10.tgz
npm http GET https://registry.npmjs.org/decompress
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/each-async
npm http GET https://registry.npmjs.org/through2
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/lodash
npm http 200 https://registry.npmjs.org/decompress
npm http 304 https://registry.npmjs.org/request
npm http 200 https://registry.npmjs.org/each-async
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/through
npm http GET https://registry.npmjs.org/cli-color
npm http GET https://registry.npmjs.org/mute-stream/0.0.4
npm http 304 https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/through2
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/hawk
npm http 200 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/cli-color
npm http 200 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/stream-combiner
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/adm-zip
npm http GET https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/xtend
npm http 304 https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/isbinaryfile
npm http GET https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/tough-cookie
npm http 200 https://registry.npmjs.org/mute-stream/0.0.4
npm http 200 https://registry.npmjs.org/through
npm http 200 https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.4.tgz
npm http 200 https://registry.npmjs.org/adm-zip
npm http 200 https://registry.npmjs.org/stream-combiner
npm http 200 https://registry.npmjs.org/mout
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 200 https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/isbinaryfile
npm http 200 https://registry.npmjs.org/readable-stream
npm http 200 https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.4.tgz
npm http GET https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/duplexer
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 200 https://registry.npmjs.org/sigmund
npm http 200 https://registry.npmjs.org/lru-cache
npm http 200 https://registry.npmjs.org/xtend
npm http 200 https://registry.npmjs.org/uuid
npm http 200 https://registry.npmjs.org/duplexer
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/CSSselect
npm http GET https://registry.npmjs.org/object-keys
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/block-stream
npm http GET https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/punycode
npm http 200 https://registry.npmjs.org/block-stream
npm http GET https://registry.npmjs.org/es5-ext
npm http GET https://registry.npmjs.org/memoizee
npm http 200 https://registry.npmjs.org/object-keys
npm http 200 https://registry.npmjs.org/CSSselect
npm http 200 https://registry.npmjs.org/entities
npm http 304 https://registry.npmjs.org/es5-ext
npm http 200 https://registry.npmjs.org/punycode
npm http 200 https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/memoizee
npm http 200 https://registry.npmjs.org/htmlparser2
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/event-emitter
npm http GET https://registry.npmjs.org/next-tick
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/next-tick
npm http 200 https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/event-emitter
npm http 200 https://registry.npmjs.org/domutils
npm http 200 https://registry.npmjs.org/CSSwhat
npm http 200 https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http GET https://registry.npmjs.org/core-util-is
npm http 200 https://registry.npmjs.org/core-util-is
npm http 200 https://registry.npmjs.org/debuglog/0.0.2
npm http GET https://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz
npm http 200 https://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz
/home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/bin/yo -> /home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules/yo/cli.js
> yo@1.1.2 postinstall /home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules/yo
> node ./scripts/doctor
[Yeoman Doctor] Uh oh, I found potential errors on your machine
---------------
[Error] NPM root value is not in your NODE_PATH
[info]
NODE_PATH = /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
NPM root = /home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules
[Fix] Append the NPM root value to your NODE_PATH variable
Add this line to your .bashrc
export NODE_PATH=$NODE_PATH:/home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules
Or run this command
echo "export NODE_PATH=$NODE_PATH:/home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules" >> ~/.bashrc && source ~/.bashrc
yo@1.1.2 /home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules/yo
├── open@0.0.4
├── async@0.2.9
├── shelljs@0.2.6
├── chalk@0.4.0 (has-color@0.1.2, ansi-styles@1.0.0, strip-ansi@0.1.1)
├── nopt@2.1.2 (abbrev@1.0.4)
├── sudo-block@0.3.0 (chalk@0.3.0)
├── lodash@2.4.1
├── findup@0.1.3 (colors@0.6.2, nopt@1.0.10)
├── insight@0.3.0 (chalk@0.2.1, lodash@1.3.1, configstore@0.1.7, inquirer@0.2.5, request@2.27.0)
├── update-notifier@0.1.7 (chalk@0.2.1, semver@2.1.0, configstore@0.1.7, request@2.27.0)
└── yeoman-generator@0.16.0 (dargs@0.1.0, diff@1.0.8, debug@0.7.4, class-extend@0.1.1, rimraf@2.2.6, text-table@0.2.0, mime@1.2.11, mkdirp@0.3.5, isbinaryfile@2.0.0, glob@3.2.8, underscore.string@2.3.3, iconv-lite@0.2.11, findup-sync@0.1.2, request@2.30.0, file-utils@0.1.5, inquirer@0.4.0, download@0.1.10, cheerio@0.13.1)
sebastien@sebastien-xps:testyo$ yo react-library
Error react-library
You don't seem to have a generator with the name react-library installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 6 registered generators run yo with the `--help` option.
sebastien@sebastien-xps:testyo$
sebastien@sebastien-xps:testyo$
sebastien@sebastien-xps:testyo$ npm install -g generator-react-library
npm http GET https://registry.npmjs.org/generator-react-library
npm http 200 https://registry.npmjs.org/generator-react-library
npm http GET https://registry.npmjs.org/yeoman-generator
npm http 304 https://registry.npmjs.org/yeoman-generator
npm http GET https://registry.npmjs.org/cheerio
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/diff
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/isbinaryfile
npm http GET https://registry.npmjs.org/dargs
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/text-table
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/file-utils
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/cheerio
npm http 304 https://registry.npmjs.org/diff
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/isbinaryfile
npm http 304 https://registry.npmjs.org/dargs
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/inquirer
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/text-table
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/findup-sync
npm http 304 https://registry.npmjs.org/download
npm http 304 https://registry.npmjs.org/file-utils
npm http 304 https://registry.npmjs.org/shelljs
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/decompress
npm http GET https://registry.npmjs.org/each-async
npm http GET https://registry.npmjs.org/through2
npm http 304 https://registry.npmjs.org/has-color
npm http 304 https://registry.npmjs.org/decompress
npm http 304 https://registry.npmjs.org/through2
npm http 304 https://registry.npmjs.org/ansi-styles
npm http 304 https://registry.npmjs.org/each-async
npm http GET https://registry.npmjs.org/stream-combiner
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/adm-zip
npm http GET https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/xtend
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/tempfile
npm http 304 https://registry.npmjs.org/stream-combiner
npm http 304 https://registry.npmjs.org/adm-zip
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/cheerio-select
npm http GET https://registry.npmjs.org/htmlparser2/3.1.4
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/xtend
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/duplexer
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/mute-stream/0.0.3
npm http GET https://registry.npmjs.org/cli-color
npm http 200 https://registry.npmjs.org/cheerio-select
npm http 200 https://registry.npmjs.org/htmlparser2/3.1.4
npm http 304 https://registry.npmjs.org/mute-stream/0.0.3
npm http 304 https://registry.npmjs.org/cli-color
npm http GET https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.1.4.tgz
npm http 304 https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/duplexer
npm http GET https://registry.npmjs.org/object-keys
npm http GET https://registry.npmjs.org/combined-stream
npm http 200 https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.1.4.tgz
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/object-keys
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/block-stream
npm http GET https://registry.npmjs.org/es5-ext
npm http GET https://registry.npmjs.org/memoizee
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/es5-ext
npm http 304 https://registry.npmjs.org/memoizee
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/event-emitter
npm http GET https://registry.npmjs.org/next-tick
npm http 304 https://registry.npmjs.org/next-tick
npm http 304 https://registry.npmjs.org/event-emitter
npm http GET https://registry.npmjs.org/CSSselect
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/CSSselect
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/domhandler
npm http 304 https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/domutils
generator-react-library@0.0.3 /home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules/generator-react-library
└── yeoman-generator@0.14.2 (dargs@0.1.0, diff@1.0.8, debug@0.7.4, rimraf@2.2.6, text-table@0.2.0, mime@1.2.11, async@0.2.9, mkdirp@0.3.5, isbinaryfile@0.1.9, chalk@0.3.0, shelljs@0.2.6, glob@3.2.8, underscore.string@2.3.3, iconv-lite@0.2.11, findup-sync@0.1.2, lodash@2.2.1, file-utils@0.1.5, request@2.27.0, inquirer@0.3.5, download@0.1.10, cheerio@0.12.4)
sebastien@sebastien-xps:testyo$ yo react-library
Error react-library
You don't seem to have a generator with the name react-library installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 6 registered generators run yo with the `--help` option.
sebastien@sebastien-xps:testyo$ npm update -g yo
npm http GET https://registry.npmjs.org/yo/latest
npm http 304 https://registry.npmjs.org/yo/latest
npm http GET https://registry.npmjs.org/yo
npm http 304 https://registry.npmjs.org/yo
sebastien@sebastien-xps:testyo$ npm update -g yo
sebastien@sebastien-xps:testyo$ yo react-library
Error react-library
You don't seem to have a generator with the name react-library installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 6 registered generators run yo with the `--help` option.
sebastien@sebastien-xps:testyo$ npm install -g generator-react-library
npm http GET https://registry.npmjs.org/generator-react-library
npm http 304 https://registry.npmjs.org/generator-react-library
npm http GET https://registry.npmjs.org/yeoman-generator
npm http 304 https://registry.npmjs.org/yeoman-generator
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/cheerio
npm http GET https://registry.npmjs.org/diff
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/isbinaryfile
npm http GET https://registry.npmjs.org/dargs
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/text-table
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/file-utils
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/dargs
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/findup-sync
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/text-table
npm http 304 https://registry.npmjs.org/download
npm http 304 https://registry.npmjs.org/shelljs
npm http 304 https://registry.npmjs.org/file-utils
npm http 304 https://registry.npmjs.org/cheerio
npm http 304 https://registry.npmjs.org/diff
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/isbinaryfile
npm http 304 https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/decompress
npm http GET https://registry.npmjs.org/each-async
npm http GET https://registry.npmjs.org/through2
npm http 304 https://registry.npmjs.org/each-async
npm http 304 https://registry.npmjs.org/has-color
npm http 304 https://registry.npmjs.org/ansi-styles
npm http 304 https://registry.npmjs.org/decompress
npm http 304 https://registry.npmjs.org/through2
npm http GET https://registry.npmjs.org/stream-combiner
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/adm-zip
npm http GET https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/adm-zip
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/xtend
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/xtend
npm http GET https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/stream-combiner
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/mout
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/cheerio-select
npm http GET https://registry.npmjs.org/htmlparser2/3.1.4
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/object-keys
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/duplexer
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/object-keys
npm http 304 https://registry.npmjs.org/cheerio-select
npm http 304 https://registry.npmjs.org/htmlparser2/3.1.4
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/cli-color
npm http GET https://registry.npmjs.org/mute-stream/0.0.3
npm http 304 https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/cli-color
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/mute-stream/0.0.3
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/duplexer
npm http GET https://registry.npmjs.org/CSSselect
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/CSSselect
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/es5-ext
npm http GET https://registry.npmjs.org/memoizee
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/es5-ext
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/memoizee
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/event-emitter
npm http GET https://registry.npmjs.org/next-tick
npm http 304 https://registry.npmjs.org/event-emitter
npm http 304 https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/next-tick
generator-react-library@0.0.3 /home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules/generator-react-library
└── yeoman-generator@0.14.2 (dargs@0.1.0, debug@0.7.4, diff@1.0.8, rimraf@2.2.6, text-table@0.2.0, mime@1.2.11, async@0.2.9, mkdirp@0.3.5, isbinaryfile@0.1.9, chalk@0.3.0, shelljs@0.2.6, glob@3.2.8, findup-sync@0.1.2, underscore.string@2.3.3, iconv-lite@0.2.11, lodash@2.2.1, cheerio@0.12.4, file-utils@0.1.5, request@2.27.0, inquirer@0.3.5, download@0.1.10)
sebastien@sebastien-xps:testyo$ yo --help
Usage: yo GENERATOR [args] [options]
General options:
-h, --help # Print generator's options and usage
-f, --force # Overwrite files that already exist
Please choose a generator below.
Mocha
mocha:app
React-webpack
react-webpack:app
react-webpack:common
react-webpack:component
react-webpack:main
Webapp
webapp:app
sebastien@sebastien-xps:testyo$
You don't seem to have fixed the doctor
problem. Here's an IRC log from my side:
10:55 PM <sboudrias> chenglou: crap... I'll troubleshoot this now, probably npmignore
10:55 PM <sboudrias> check your NODE_PATH anyway
10:55 PM <sboudrias> make sure it contains `npm -g root`
10:58 PM <sboudrias> `doctor` should work now, `npm uninstall -g yo && npm cache clean && npm -g install yo`
10:58 PM <chenglou> yeah seems like it's node_path
10:59 PM <chenglou> weird, I dont remember touching that...
10:59 PM <chenglou> let me tyr
10:59 PM <chenglou> try
10:59 PM <sboudrias> yo doctor will output commands you can run to fix it
11:02 PM <chenglou> sboudrias: perfect, appended the path and everything works now!
Ok so previously the "yo doctor" command was not working. I guess it was fixed when I updated yo.
sebastien@sebastien-xps:rww-play (master %)$ yo doctor
[Yeoman Doctor] Uh oh, I found potential errors on your machine
---------------
[Error] NPM root value is not in your NODE_PATH
[info]
NODE_PATH = /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
NPM root = /home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules
[Fix] Append the NPM root value to your NODE_PATH variable
Add this line to your .bashrc
export NODE_PATH=$NODE_PATH:/home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules
Or run this command
echo "export NODE_PATH=$NODE_PATH:/home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules" >> ~/.bashrc && source ~/.bashrc
sebastien@sebastien-xps:rww-play (master %)$ echo "export NODE_PATH=$NODE_PATH:/home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/lib/node_modules" >> ~/.bashrc && source ~/.bashrc
sebastien@sebastien-xps:rww-play (master %)$ which node
/home/sebastien/Desktop/devhome/install/node-v0.10.24-linux-x64/bin/node
sebastien@sebastien-xps:rww-play (master %)$ yo doctor
[Yeoman Doctor] Everything looks alright!
I can now see other things:
sebastien@sebastien-xps:rww-play (master %)$ yo --help
Usage: yo GENERATOR [args] [options]
General options:
-h, --help # Print generator's options and usage
-f, --force # Overwrite files that already exist
Please choose a generator below.
Angular
angular:app
angular:common
angular:constant
angular:controller
angular:decorator
angular:directive
angular:factory
angular:filter
angular:main
angular:provider
angular:route
angular:service
angular:value
angular:view
Karma
karma:app
Mocha
mocha:app
React-library
react-library:app
React-quickstart
react-quickstart:app
React-webpack
react-webpack:app
react-webpack:common
react-webpack:component
react-webpack:main
Webapp
webapp:app
sebastien@sebastien-xps:rww-play (master %)$
thanks it works with yo react-library
I'm new to Yeoman and followed the readme but it doesn't work. I don't really know what I have done wrong.
Any idea?