Closed IbrahimBond closed 6 years ago
PS E:\#Programowanie\#GitHub\temp> npm i class-transformer class-validator class-transformer-validator
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN class-transformer-validator@0.4.0 requires a peer of class-validator@^0.7.2 but none is installed. You must install peer dependencies yourself.
+ class-transformer@0.1.8
+ class-transformer-validator@0.4.0
+ class-validator@0.8.1
added 4 packages in 1.39s
PS E:\#Programowanie\#GitHub\temp>
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"class-transformer": {
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.1.8.tgz",
"integrity": "sha512-qniRyjtvDPEXFspXfjrYerYy75pqwOIN4IUf2/MPHzZ3zVB7Cssq7dKSNZzEp6G1DH8tDk5gKY+KFxtlkf03qQ=="
},
"class-transformer-validator": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/class-transformer-validator/-/class-transformer-validator-0.4.0.tgz",
"integrity": "sha512-CKdvTaeomA928/Nngaa4EUsp5ZEBFgZME6HW/GEKkYGXD2D/ukKKCGpDLiWCuQAszGN2Saeyk0Xe/vTi5jfvTA=="
},
"class-validator": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.8.1.tgz",
"integrity": "sha512-sQgc0oEI2VqyARUZdXNWvsopOO12rrE1/3TdGDhn/P0bpAOTnhT2hdkHyVGOpSQKjolLgtWq1EddXhSL/9CgnQ==",
"requires": {
"validator": "9.2.0"
}
},
"validator": {
"version": "9.2.0",
"resolved": "https://registry.npmjs.org/validator/-/validator-9.2.0.tgz",
"integrity": "sha512-6Ij4Eo0KM4LkR0d0IegOwluG5453uqT5QyF5SV5Ezvm8/zmkKI/L4eoraafZGlZPC9guLkwKzgypcw8VGWWnGA=="
}
}
}
@IbrahimBond please try npm i class-transformer class-validator class-transformer-validator
If it still doesn't work, I think that it's yarn/npm problem, not this library fault 😉
@19majkel94 hi,
i have tried installing peer dependecies and some kind of fault occures, but using the npm command you wrote worked fine. thanks for your help!
when i install class-validator, class-transformer get removed, and when i install class-transformer again, class validator gets removed.
yarn version : 1.3.2 npm version : 5.5.1 node version: 8.9.1 angular/cli: 1.6.4 angular-devkit/build-optimizer: 0.0.38 angular-devkit/core: 0.0.25 angular-devkit/schematics: 0.0.48 ngtools/json-schema: 1.1.0 ngtools/webpack: 1.9.4 schematics/angular: 0.1.13 schematics/schematics: 0.0.13 typescript: 2.2.2 webpack: 3.10.0