Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syr verison command does not work #10

Open
xyreryp opened this issue Nov 19, 2018 · 0 comments
Open

syr verison command does not work #10

xyreryp opened this issue Nov 19, 2018 · 0 comments

Comments

@xyreryp
Copy link

xyreryp commented Nov 19, 2018

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)
@dmikey dmikey transferred this issue from syrjs/core Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant