-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CLI command is dead #2569
Comments
@changchengchang, I just tried with the following configurations on my Windows 10 machine and it seems to be working fine:
I'm using |
@changchengchang, are you still encountering this problem? |
Yes. I tried different version of nodejs and lb4. The same problem occurred. |
Related to #3187 and strongloop/loopback-cli#88. In my computer, I can reproduce using specific conditions (see below). Windows 10 1903, Node.js v10.16.3, npm v6.11.3,
These work:
But the following does not work:
Proof: |
@changchengchang @ceefour, one more question.. Are you using @ceefour, for your particular issue, I just tried it on mac and there's no hanging. Let me try to reproduce on a Windows machine tonight. |
@dhmlau I don't use nvm. it's the standard official installer. I'd love to share info with debug flags, verbose, more diagnosis, etc. if you tell me how to enable that. Note that I can only reproduce this on lb4 datasource, I haven't found other command, e. g. lb4 app, which reproduces this problem. But I suspect there's a root cause for this that is not datasource specific. |
@dhmlau also, spawning 'lb4 anything' from a node app (as child process) in Windows will make it stuck immediately (even with --yes). it's not exactly this issue but it is related. perhaps you can check if it also happens on mac. by comparison, other scripts like npm install etc. I can run using node's spawn without issue. |
FWIW, CLI tests are hanging in AppVeyor (Windows) when using Node.js versions newer than 10.0.0. Related discussions:
It makes me wonder - if you downgrade your Node.js version to 8, will it fix the problem? |
It seems that this was an ephemeral issue so closing as cannot replicate. |
I had to look up |
Description / Steps to reproduce / Feature proposal
In my Windows 10, Nodejs 11 and @loopback/cli 1.8.1 are installed.
Current Behavior
When running any lb4 command, it stopped. There is no error. I tried different version of nodejs and loopback cli. It is the same. Other cli works (e.g. lb3 cli)
Expected Behavior
The command works
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: