nestjs / nest-cli

CLI tool for Nest applications 🍹
https://nestjs.com
Other
1.97k stars 394 forks source link

Error creating new app with nest-cli 6.0.0 #246

Closed mavortius closed 5 years ago

mavortius commented 5 years ago

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Running 'nest new [app-name]' result in 'Failed to execute command: npm install --silent'

Expected behavior

Creation of a new app without errors.

Minimal reproduction of the problem with instructions

Install nest-cli. Run 'nest new [app-name]' command.

What is the motivation / use case for changing the behavior?

Environment

[System Information]
OS Version     : Linux 4.18
NodeJS Version : v10.15.3
NPM Version    : 6.4.1

[Nest Information]
common version : 6.0.0
core version   : 6.0.0
iammathew commented 5 years ago

Error is trying to create nest-cli.json two times:

CREATE /graphql-demo/.prettierrc (51 bytes) CREATE /graphql-demo/README.md (3370 bytes) CREATE /graphql-demo/nest-cli.json (84 bytes) CREATE /graphql-demo/nodemon-debug.json (163 bytes) CREATE /graphql-demo/nodemon.json (132 bytes) CREATE /graphql-demo/package.json (1684 bytes) CREATE /graphql-demo/tsconfig.build.json (89 bytes) CREATE /graphql-demo/tsconfig.json (300 bytes) CREATE /graphql-demo/tslint.json (426 bytes) CREATE /graphql-demo/src/app.controller.spec.ts (617 bytes) CREATE /graphql-demo/src/app.controller.ts (274 bytes) CREATE /graphql-demo/src/app.module.ts (249 bytes) CREATE /graphql-demo/src/app.service.ts (142 bytes) CREATE /graphql-demo/src/main.ts (208 bytes) CREATE /graphql-demo/test/app.e2e-spec.ts (561 bytes) CREATE /graphql-demo/test/jest-e2e.json (183 bytes) ERROR! /graphql-demo/nest-cli.json already exists. The Schematic workflow failed. See above.

kamilmysliwiec commented 5 years ago

It seems that you're not using the latest version of the package. Please, ensure to install @nestjs/cli@6.0.0.

mavortius commented 5 years ago

Ok. I reinstalled nest-cli on my system and it worked.