nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

[ERROR] '.' is not recognized as an internal or external command ...

Open dbratsun opened this issue 8 years ago • 6 comments

After run nest serve the error (s. subj)

dbratsun avatar Feb 09 '18 10:02 dbratsun

Hey @dbratsun,

Can you provide your system information ==> 'nest info' ? Can you provide your project structure ? Can you copy / paste your nestconfig.json file ?

Thanks.

thomrick avatar Feb 12 '18 13:02 thomrick

Hi, @ThomRick!

  1. nest info output [System Information] OS Version Windows 10 NodeJS Version v8.1.0 NPM Version 5.6.0

[Nest Information] NestJS Version 4.5.10 Nest CLI Version 1.0.0

  1. nestconfig.json { "language": "ts | es (default: ts)", "entryFile": "src/main.ts" }

  2. project structure

index.js nestconfig.json nodemon.json ormconfig.json package.json tsconfig.json tslint.json

  • src
    • database
      • database.module.ts
      • database.providers.ts
    • app.controller.ts
    • app.module.ts
    • main.ts

Hope this help!

dbratsun avatar Feb 12 '18 22:02 dbratsun

Thanks a lot @dbratsun,

I think I found the bug and I think all windows users should have the same problem XD. I'll fix it as soon as possible !

By the way your nestconfig.json should look like this if you use Typescript:

{
  "language": "ts",
  "entryFile": "src/main.ts"
}

and look like this if you use Javascript:

{
  "language": "es",
  "entryFile": "src/main.ts"
}

thomrick avatar Feb 13 '18 07:02 thomrick

@dbratsun can you first upgrade to @nestjs/cli 2.0.0-rc.3 ?

thomrick avatar Feb 13 '18 08:02 thomrick

ready, but the same error

dbratsun avatar Feb 13 '18 08:02 dbratsun

The CLI tool was rebuild from scratch and integrate schematics to generate assets. Please upgrade to v4.0.0-rc1

thomrick avatar Apr 01 '18 10:04 thomrick