moleculerjs / moleculer-cli

:herb: Command line tool for Moleculer
http://moleculer.services/docs/moleculer-cli.html
MIT License
48 stars 28 forks source link

command `moleculer` won't execute #1

Closed dydx closed 7 years ago

dydx commented 7 years ago

My environment:

OS: Darwin failbowl.turner.com 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64

Node: v7.9.0 NPM: 4.2.0

Issue:

After running npm install -g moleculer-cli, the moleculer command will not execute properly. This appears to be related to some newline encoding within bin/moleculer.js.

❯ moleculer
env: node\r: No such file or directory
icebob commented 7 years ago

Thank you the PR. I'm on Windows.

dydx commented 7 years ago

Awesomesauce! Thanks for the cool software.

icebob commented 7 years ago

I release v0.3.1. Could you test it again from npm?

dydx commented 7 years ago

Hmm. It appears to still be acting up:

❯ npm install -g moleculer-cli
/Users/josh/.nvm/versions/node/v7.9.0/bin/moleculer -> /Users/josh/.nvm/versions/node/v7.9.0/lib/node_modules/moleculer-cli/bin/moleculer.js
/Users/josh/.nvm/versions/node/v7.9.0/lib
└── moleculer-cli@0.3.1

❯ moleculer
env: node\r: No such file or directory
icebob commented 7 years ago

I think, CRLF will be the problem. I'm fixing...

icebob commented 7 years ago

Please try the 0.3.2.

dydx commented 7 years ago

👍 that appears to have fixed it!

icebob commented 7 years ago

Great! Thanks for your help!