Skip to content

Cli command cannot find module 'express' #46

@jellehak

Description

@jellehak

Cli command can't find express. Perhaps this should be added to the docs to also install express globally when using the global cli command json-server-auth.

> npx json-server-auth db.json

node:internal/modules/cjs/loader:927
  throw err;
  ^

Error: Cannot find module 'express'
Require stack:
- /usr/local/lib/node_modules/json-server-auth/dist/guards.js
- /usr/local/lib/node_modules/json-server-auth/dist/bin.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions