Skip to content

Suggestion for installing scoped generator is wrong #518

@Jameskmonger

Description

@Jameskmonger

Type of issue

Bug


My environment

  • OS version/details: Windows 10 64-bit
  • Node version: 6.1.0
  • npm version: 4.5.0
  • Version of yo : 1.8.5

Expected behavior

Attempting to run a scoped generator (e.g. yo @somescope/somegen) should tell the user how to install it if it doesn't exist. The npm install suggestion should be npm install @somescope/generator-somegen.

Current behavior

The message is npm install generator-@somescope/somegen.

Steps to reproduce the behavior

Run yo @foo/bar when you do not have @foo/generator-bar installed.

Command line output

λ yo @foo/bar
Error @foo/bar

You don’t seem to have a generator with the name “@foo/bar” installed.
But help is on the way:

You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-@foo/bar.

To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.

If yo cannot find the generator, run yo doctor to troubleshoot your system.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions