#Hey is there a way to upgrade to a not latest version of nestjs, let's say 8

25 messages · Page 1 of 1 (latest)

restive spade
#

I am having issues with the new Typeorm interfaces on an old project when upgrading it.

dense ravine
#

Upgrade from what to what? Just latest version of v8?

restive spade
#

this project is currently in v7

dense ravine
#

Ah, okay. And you just want to take it from v7 to latest v8?

restive spade
#

Thanks for replying 😄

#

yeah, v7 -> v8, I do the upgrade and it takes me to v9

dense ravine
#

Package manager?

restive spade
#

currently NPM but I am open to change if needed

dense ravine
#

No need. Just needed to know what commands to write 🙂 Are you on a Unix system, and if so do you use ZSH?

restive spade
#

Linux with bash, I did nest update and took me to 9, also tried ncu -u but same result

dense ravine
#

Ah, okay, I don't think bash has the same string replacement functionality so I'll have to type this out the long way. Last question, can you run nest info for me, so I know what Nest packages you have

restive spade
#

my main issue is that the project won't run in 9 because a lot of changes I need to do in the data access layer

#
platform-express version : 9.1.4
schematics version       : 9.0.3
passport version         : 9.0.0
swagger version          : 6.1.2
typeorm version          : 9.0.1
testing version          : 9.1.4
common version           : 9.1.4
config version           : 2.2.0
core version             : 9.1.4
cli version              : 9.1.4
jwt version              : 9.0.0
dense ravine
#
npm i @nestjs/platform-express@^8.0.0 @nestjs/passport@^8.0.0 @nestjs/typeorm@8.0.0 @nestjs/common@^8.0.0 @nestjs/core@^8.0.0 @nestjs/jwt@^8.0.0 @nestjs/swagger@^5.0.0
npm i -D @nestjs/schematics@^8.0.0 @nestjs.cli@^8.0.0 @nestjs/testing@^8.0.0 

I think that should do it

#

There's two commands there, one for deps and one for devDeps

restive spade
#

Hey thanks a lot, I am getting some erros with dependencies, should I --force?

dense ravine
#

That would depend on what errors you're getting

restive spade
#
Could not resolve dependency:
npm ERR! peer rxjs@"^7.1.0" from @nestjs/common@8.4.7
npm ERR! node_modules/@nestjs/common
npm ERR!   @nestjs/common@"^8.0.0" 
dense ravine
#

Do you have rxjs v7 installed?

restive spade
#

I dont remember manually installing it

dense ravine
#

Is it in your package.json?

restive spade
#

"rxjs": "^6.5.4",

#

:/

#

should I install rxjsv7?

dense ravine
#

Yeah, rxjs should be updated to v7