Loopback-next: lb4 command hangs

Created on 20 Jun 2019  路  14Comments  路  Source: strongloop/loopback-next

I can not create any project using lb4 cli

hangs on project root directory:

it should create necessary files and project get created

node: 10.16
os: macOS
npm: 6.9.0

I don't understand why it hangs.

CLI

Most helpful comment

Released @loopback/[email protected]

All 14 comments

@sagark1510 Hey, might be helpful to post installed loopback version (lb4 -v) and any error messages.

Description / Steps to reproduce / Feature proposal

I just write

lb4 app

in my terminal.

Current Behavior

After entering the project name and description. My terminal stops(hangs), the cursor keeps blinking, and doesn't accept any input at ? Project root directory question pressing <Enter>, Ctrl+Z, Ctrl+C or any button has no effect.

screenshot

Expected Behavior

I should be able to enter the project root directory.

Note

I have just installed loopback cli, using the following command.

sudo npm i -g @loopback/cli

I use Ubuntu 19.04.

@kerolloz Hey, I've just updated and can confirm the bug. Posting version info:

````@loopback/* dependencies:

  • @loopback/authentication: ^2.1.2
  • @loopback/boot: ^1.4.1
  • @loopback/build: ^2.0.0
  • @loopback/context: ^1.19.1
  • @loopback/core: ^1.8.2
  • @loopback/metadata: ^1.2.2
  • @loopback/openapi-spec-builder: ^1.2.2
  • @loopback/openapi-v3-types: ^1.1.2
  • @loopback/openapi-v3: ^1.6.2
  • @loopback/repository-json-schema: ^1.7.0
  • @loopback/repository: ^1.7.0
  • @loopback/rest: ^1.16.0
  • @loopback/testlab: ^1.6.0
  • @loopback/docs: ^1.23.0
  • @loopback/example-hello-world: ^1.2.2
  • @loopback/example-log-extension: ^1.2.2
  • @loopback/example-rpc-server: ^1.2.2
  • @loopback/example-todo: ^1.6.2
  • @loopback/example-soap-calculator: ^1.6.3
  • @loopback/service-proxy: ^1.2.2
  • @loopback/http-caching-proxy: ^1.1.2
  • @loopback/http-server: ^1.4.1
  • @loopback/example-todo-list: ^1.7.2
  • @loopback/dist-util: ^0.4.0
  • @loopback/rest-explorer: ^1.2.2
  • @loopback/eslint-config: ^1.1.2
  • @loopback/example-express-composition: ^1.4.2
  • @loopback/example-greeter-extension: ^1.3.2
  • @loopback/booter-lb3app: ^1.2.2
  • @loopback/example-lb3-application: ^1.1.2
  • @loopback/example-greeting-app: ^1.1.2
  • @loopback/example-context: ^1.2.2
    ````

@dhmlau Serious bug.

@dougal83 glad you found the bug. @loopback/cli version: 1.17.0 this is the version I am using and there is not error or anything just it hangs.

What's the node.js version?

@raymondfeng 10.16.0

Hmm, I can reproduce it with Node 12.3.1 on Mac too. :-(

I just updated node to 12.4 on Win 10. Still occuring.
Is it an issue with generators as a whole? https://github.com/yeoman/yeoman/issues/1714

It is probably caused by [email protected]. Downgrading to [email protected] works.

@raymondfeng how do we do that? can we release new version with [email protected] ??

I'll wait a bit to see if the upstream bug can be fixed quickly. We can try to ping it to [email protected] if necessary tomorrow.

Released @loopback/[email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

acrodrig picture acrodrig  路  3Comments

half-blood-programmer picture half-blood-programmer  路  3Comments

mightytyphoon picture mightytyphoon  路  3Comments

aceraizel picture aceraizel  路  3Comments

teambitcodeGIT picture teambitcodeGIT  路  3Comments