Skip to content

syr verison command does not work #10

@xyreryp

Description

@xyreryp

syr-cli version: latest

Problem:

When I ran syr version and syr help but got errors.
Here is the code.

$ syr version
Command Not Found: version
/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/commands/index.js:15
  module.cmd.apply(this, optionals);
         ^

TypeError: Cannot read property 'cmd' of undefined
    at commands (/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/commands/index.js:15:10)
    at main (/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/cli.js:25:28)
    at Object.<anonymous> (/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/cli.js:33:1)
    at Module._compile (internal/modules/cjs/loader.js:722:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:775:12)
    at startup (internal/bootstrap/node.js:300:19)

$ syr help
Command Not Found: help
/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/commands/index.js:15
  module.cmd.apply(this, optionals);
         ^

TypeError: Cannot read property 'cmd' of undefined
    at commands (/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/commands/index.js:15:10)
    at main (/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/cli.js:25:28)
    at Object.<anonymous> (/Users/ypxie/.npm-packages/lib/node_modules/@syr/cli/lib/cli.js:33:1)
    at Module._compile (internal/modules/cjs/loader.js:722:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:775:12)
    at startup (internal/bootstrap/node.js:300:19)

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