I want to degrade the serverless version from 2.41.2 to 2.35.0

By mistake I had installed the higher version of serverless on my pc. Now I want to degrade my serverless framework version from v2.41.2 to v2.35.0 due to some project requirements.

What I had tried to do:

  • I had uninstall the current serverless framework with this command npm uninstall -g serverless.

  • After that I had run this command npm install -g serverless@2.35.0

But
When I run this command serverless --version it’s still showing the version 2.41.2 on my pc.