Skip to content

v4: feathers generate authentication doesn't work in .pre-1 #1404

@MichaelJCole

Description

@MichaelJCole

Steps to reproduce

I was working from the documentation here:

https://crow.docs.feathersjs.com/guides/chat/authentication.html#generate-authentication

and it says to feathers generate authentication but it doesn't work.

$ feathers --version
4.0.0-pre.1

$ feathers generate authentication
events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: You don't seem to have a generator with the name “feathers:authentication” installed.
...

$ feathers generate
Usage: feathers generate [type]

Options:
  -V, --version      output the version number
  -h, --help         output usage information

Commands:
  generate|g [type]  Run a generator. Type can be
  	• app - Create a new Feathers application in the current folder
  	• connection - Initialize a new database connection
  	• hook - Create a new hook
  	• middleware - Create an Express middleware
  	• service - Generate a new service
  	• plugin - Create a new Feathers plugin
  
  upgrade|u          Try to automatically upgrade to the latest Feathers version
  *

The suggested fix doesn't work:

npm install generator-feathers:authentication
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "generator-feathers:authentication": Tags may not have any characters that encodeURIComponent encodes.

Expected behavior

Tell us what should happen

Actual behavior

Tell us what happens instead

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):

"dependencies": {
    "@feathersjs/configuration": "^4.0.0-pre.3",
    "@feathersjs/errors": "^4.0.0-pre.3",
    "@feathersjs/express": "^4.0.0-pre.3",
    "@feathersjs/feathers": "^4.0.0-pre.3",
    "@feathersjs/socketio": "^4.0.0-pre.3",
    "compression": "^1.7.4",
    "cors": "^2.8.5",
    "helmet": "^3.18.0",
    "serve-favicon": "^2.5.0",
    "winston": "^3.2.1"
  },

NodeJS version: 8.16
Operating System: Ubuntu
Browser Version: Chrome
Module Loader: Webpack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions