#Upgrading to NextJs 15

4 messages · Page 1 of 1 (latest)

devout palm
#

When i try to upgrade to nextjs 15 using " npm i @codemod@ canary upgrade latest"
i get this error "React: v18.3.1Next.js: v14.2.13 SyntaxError: Unexpected end of JSON input at JSON.parse () at loadHighestNPMVersionMatching"

How can i fix it

granite thornBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

weak moth
#

@devout palm You should be using npx and not npm, the correct syntax is as follows: npx @next/codemod@canary upgrade latest. This will upgrade to 15.0.1.

To upgrade to 15.0.2-canary.6 run npx @next/codemod@canary upgrade 15.0.2-canary.6