fsprojects-archive / zzarchive-generator-fsharp

[ARCHIVED] Yeoman F# generator
Apache License 2.0
62 stars 27 forks source link

Can't install/use generator #8

Closed torbonde closed 9 years ago

torbonde commented 9 years ago

I tried running the command npm install -g generator-fsharp on OS X, which gave me the following output

generator-fsharp@0.2.0 /usr/local/lib/node_modules/generator-fsharp
├── uuid@2.0.1
├── chalk@1.0.0 (escape-string-regexp@1.0.3, ansi-styles@2.0.1, supports-color@1.3.1, strip-ansi@2.0.1, has-ansi@1.0.3)
├── chai@1.10.0 (assertion-error@1.0.0, deep-eql@0.1.3)
├── yosay@1.0.4 (string-length@1.0.0, ansi-regex@1.1.1, ansi-styles@2.0.1, word-wrap@1.0.3, strip-ansi@2.0.1, pad-component@0.0.1, taketalk@1.0.0, minimist@1.1.1)
└── yeoman-generator@0.19.2 (read-chunk@1.0.1, detect-conflict@1.0.0, yeoman-welcome@1.0.1, xdg-basedir@1.0.1, user-home@1.1.1, diff@1.4.0, text-table@0.2.0, mime@1.3.4, dargs@4.0.1, async@0.9.2, istextorbinary@1.0.2, debug@2.2.0, cross-spawn@0.2.9, nopt@3.0.2, run-async@0.1.0, mkdirp@0.5.1, shelljs@0.4.0, mem-fs-editor@1.2.3, cli-table@0.3.1, through2@0.6.5, dateformat@1.0.11, pretty-bytes@1.0.4, underscore.string@3.1.1, glob@5.0.10, findup-sync@0.2.1, rimraf@2.4.0, github-username@1.1.1, yeoman-assert@1.0.0, class-extend@0.1.1, yeoman-environment@1.2.5, html-wiring@1.1.0, gruntfile-editor@1.0.0, lodash@3.9.3, download@4.1.2, inquirer@0.8.5, sinon@1.14.1)

Next I ran the command yo fsharp which gave me the output

Error fsharp 

You don't seem to have a generator with the name fsharp installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 1 registered generators run yo with the `--help` option.

I installed the C# generator, which works just fine.

rodrigovidal commented 9 years ago

We don't why it is not working but as a workaround try: npm install -G generator-fsharp (with capital G). It fixed for me.

rodrigovidal commented 9 years ago

Should be fixed now a329e30c4b597d9a543507a93537bb9e9ca0d75f

Please update to version 0.2.2.

torbonde commented 9 years ago

Thanks! That fixed it.