Skip to content

posttest script of npm t fails on CLI-generated app #1045

@shimks

Description

@shimks

Description/Steps to reproduce

  • npm i -g @loopback/cli
  • lb4 testApp
  • cd testApp
  • npm t

More specifically, npm run prettier:cli script will fail with the following messages:

src/sequence.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test@1.0.0 prettier:cli: `lb-prettier "**/*.ts" "**/*.js" "-l"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test@1.0.0 prettier:cli script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kyusungshim/.npm/_logs/2018-02-23T17_10_46_510Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test@1.0.0 prettier:check: `npm run prettier:cli -- -l`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test@1.0.0 prettier:check script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kyusungshim/.npm/_logs/2018-02-23T17_10_46_549Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test@1.0.0 lint: `npm run prettier:check && npm run tslint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test@1.0.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kyusungshim/.npm/_logs/2018-02-23T17_10_46_575Z-debug.log
npm ERR! Test failed.  See above for more details.

There's no issue with linting of sequence.ts in general, but the error shows up regardless

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions