nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
66.9k stars 7.55k forks source link

How to solve this problem #515

Closed tomoat closed 6 years ago

tomoat commented 6 years ago

Although this is not a big problem, I think it needs to be solved out of the neatness and love of the code.

warning " > @nestjs/common@4.6.5" has incorrect peer dependency "reflect-metadata@0.1.10".
warning " > @nestjs/core@4.6.5" has incorrect peer dependency "reflect-metadata@0.1.10".
warning " > @nestjs/microservices@4.6.5" has incorrect peer dependency "reflect-metadata@0.1.10".
warning " > @nestjs/swagger@1.1.4" has incorrect peer dependency "reflect-metadata@0.1.10".
warning " > @nestjs/websockets@4.6.5" has incorrect peer dependency "reflect-metadata@0.1.10".

package.json

{
  "name": "nest-typescript-starter",
  "version": "1.0.0",
  "description": "Nest TypeScript starter repository",
  "license": "MIT",
  "scripts": {
    "start": "node index.js",
    "start:watch": "nodemon",
    "prestart:prod": "tsc",
    "start:prod": "node dist/main.js"
  },
  "dependencies": {
    "@nestjs/common": "^4.6.5",
    "@nestjs/core": "^4.6.5",
    "@nestjs/microservices": "^4.6.5",
    "@nestjs/testing": "^4.6.1",
    "@nestjs/swagger": "^1.1.4",
    "@nestjs/websockets": "^4.6.5",
    "redis": "^2.8.0",
    "reflect-metadata": "^0.1.12",
    "rxjs": "^5.5.6",
    "typescript": "^2.7.2"
  },
  "devDependencies": {
    "@types/node": "^9.4.6",
    "nodemon": "^1.17.1",
    "ts-node": "^5.0.1"
  }
}
shekohex commented 6 years ago

it will be fixed in v5.x , which will be released soon

chanlito commented 6 years ago

or use "reflect-metadata": "0.1.10"

kamilmysliwiec commented 6 years ago

@shekohex @chanlito explained 🙂

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.