yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

error Command "up" not found. #9059

Closed fahimahammed closed 1 month ago

fahimahammed commented 1 month ago

Bug description

I am encountering difficulties while attempting to upgrade Prisma ORM to version 5 from an earlier version. Following the documentation provided, I executed the command yarn up prisma@5 @prisma/client@5. However, I encountered an error stating "Command 'up' not found."

How to reproduce

  1. Navigate to a project using an earlier version of Prisma ORM.
  2. Execute the command yarn up prisma@5 @prisma/client@5.

Expected behavior

The command should upgrade both the prisma and @prisma/client packages to version 5 as documented, without throwing an error.

Environment & setup

fahimahammed commented 1 month ago

Yarn doesn't use up for upgrades. Here's the correct approach using the standard yarn upgrade command:

yarn upgrade prisma @prisma/client

Daniel15 commented 1 month ago

Closing as question was answered above