Facing issue when run meteor app after updagre version from 1.6 to 2.12

hi i m getting this error when upgrade and run meteor app
TypeError: connect.urlencoded is not a function
W20230605-17:46:53.973(5.5)? (STDERR) at packages/simple_json-routes.js:31:36
W20230605-17:46:53.973(5.5)? (STDERR) at packages/simple_json-routes.js:161:4
W20230605-17:46:53.973(5.5)? (STDERR) at packages/simple_json-routes.js:191:3
W20230605-17:46:53.973(5.5)? (STDERR) at /Users/ankitsaraf/Project Code/ParkourSC/FRT37/RT37/.meteor/local/build/programs/server/boot.js:385:38
W20230605-17:46:53.974(5.5)? (STDERR) at Array.forEach ()
W20230605-17:46:53.974(5.5)? (STDERR) at /Users/ankitsaraf/Project Code/ParkourSC/FRT37/RT37/.meteor/local/build/programs/server/boot.js:210:21
W20230605-17:46:53.974(5.5)? (STDERR) at /Users/ankitsaraf/Project Code/ParkourSC/FRT37/RT37/.meteor/local/build/programs/server/boot.js:439:7
W20230605-17:46:53.974(5.5)? (STDERR) at Function.run (/Users/ankitsaraf/Project Code/ParkourSC/FRT37/RT37/.meteor/local/build/programs/server/profile.js:256:14)
W20230605-17:46:53.974(5.5)? (STDERR) at /Users/ankitsaraf/Project Code/ParkourSC/FRT37/RT37/.meteor/local/build/programs/server/boot.js:438:13

I see urlencoded is part of the body-parser API and not connect while both ar dependencies of the Meteor package.


then what we need to do. shall i upgrade body-parser version or what , i didn’t get you exactly.
for your info this project/application develop and running on meteor old version but now on my new mac system i m not able to install same version getting not found error when going to install
that why used latest meteor version and facing this kind of error

is better of any one suggest how to install exact meteor version on my mac system now a day
Any whys @paulishca thanks for reply.
please reply again if have any suggestion