Old AdonisJS Legacy 4.1 project broke with npm install #3990
-
Hi there! I'm working with a code base written with the AdonisJS legacy using JavaScript, version 4.1, the problem is that my project always broke when I run npm install and I need to copy the old backup of node_modules from the beginning of the project, the follow error occur: When I look for which modules it is unable to download from npm, I get packages from the framework itself, so the reason for this error is because my project is using a legacy version that is not available in the npm repositories anymore? If that's the case, is there any way for it to work with npm install without the need to restore the manual node_modules backup? Or is it time to move the project to the latest version of Adonis? I know that it's supports (legacy version) ended in 2021. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I forget to share my package.json, maybe can be helpful, I remove some info for privacy of the company but in general is very similar:
|
Beta Was this translation helpful? Give feedback.
-
Hey @viniciusmorgado! 👋🏻 You have mixed the version of your packages. Some are for V5 (like |
Beta Was this translation helpful? Give feedback.
Hey @viniciusmorgado! 👋🏻
You have mixed the version of your packages. Some are for V5 (like
Lucid
18), but you are still using V4.I recommend downgrading each package to its V4 version or, even better, upgrading to V5.