[SOLVED] Package['alanning:roles'].Roles._forwardMigrate() failed

Hi, I am trying to update the alanning:roles to v2 (I am using 1.2.19 version) through meteor shell using this command:

Package[‘alanning:roles’].Roles._forwardMigrate()

But I got this error:

Uncaught TypeError: Package.alanning:roles.Roles._forwardMigrate is not a function
    at packages/shell-server/shell-server.js:252:21
    at runBound (domain.js:439:12)
    at bound (domain.js:426:14)
    at defaultEval (repl.js:430:29)
    at Script.runInThisContext (vm.js:120:20)
    at repl:1:-29

I want to update it first to v2 in order to update it later to v3, as it says in the documentation to migrate to 3.0.

My packages file is the following:

# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-base@1.4.0             # Packages every Meteor app needs to have
mobile-experience@1.1.0       # Packages for a great mobile UX
mongo@1.10.0                   # The database Meteor supports right now
jquery                  # Wrapper package for npm-installed jquery
tracker@1.2.0                 # Meteor's client-side reactive programming library

standard-minifier-css@1.6.0   # CSS minifier run for production mode
standard-minifier-js@2.6.0    # JS minifier run for production mode
es5-shim@4.8.0                # ECMAScript 5 compatibility for older browsers
ecmascript@0.14.3              # Enable ECMAScript2015+ syntax in app code
typescript@3.7.6              # Enable TypeScript syntax in .ts and .tsx modules
shell-server@0.5.0            # Server-side component of the `meteor shell` command


meteortesting:mocha               # A package for writing and running your meteor app and package tests with mocha
johanbrook:publication-collector  # Test a Meteor publication by collecting its output
static-html
akryum:vue-component
akryum:vue
accounts-base@1.6.0
accounts-password@1.6.0
alanning:roles@1.2.19
babrahams:transactions
check@1.3.1
mizzao:user-status
nimble:restivus
mdg:validated-method
lacosta:method-hooks
peerlibrary:middleware
meteorhacks:async

Anyone can help me please?

Note: I am using
Meteor 1.10.2
Windows 10 x64 (1909)
Node: 12.16.3

Hi, I already solve my problem xD, I didn’t know that I had to update the package to 2.1.1 and after apply that command in meteor shell, so, I got it.

I also had to modify some my code to make it work. (such as replace getGroupsForUser by getScopesForUser)

Greetings.