running 'yarn start', failed with error
zaalgol opened this issue · comments
running 'yarn', works OK:
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 2.12s.
running 'yarn start', failed with error:
yarn run v1.22.5
$ npm run build && node ./dist/server.js
> tsoa-example@0.0.1 build C:\Users\zg892471\Downloads\tsoa-example-master\tsoa-example-master
> npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui
> tsoa-example@0.0.1 clean C:\Users\zg892471\Downloads\tsoa-example-master\tsoa-example-master
> rimraf dist
> tsoa-example@0.0.1 lint C:\Users\zg892471\Downloads\tsoa-example-master\tsoa-example-master
> tslint ./src/**/*.ts
ERROR: src/server.ts:3:1 - Import sources within a group must be alphabetized.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! tsoa-example@0.0.1 lint: `tslint ./src/**/*.ts`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the tsoa-example@0.0.1 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! C:\Users\zg892471\AppData\Roaming\npm-cache\_logs\2020-12-22T17_36_22_218Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! tsoa-example@0.0.1 build: `npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the tsoa-example@0.0.1 build 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! C:\Users\zg892471\AppData\Roaming\npm-cache\_logs\2020-12-22T17_36_22_264Z-debug.log
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
solved
added /* tslint:disable */ above server.ts file