我想启动我的项目并使用邮递员来测试我的 CRUD,但是当我编写 npm start 然后单击 Enter 时出现此错误,无法理解该怎么做。
C:\Projects\ProjetNode\The-continental>npm start
> the-continental@0.0.0 start C:\Projects\ProjetNode\The-continental
> node ./bin/www
C:\Projects\ProjetNode\The-continental\node_modules\express\lib\router\route.js:202
throw new Error(msg);
^
Error: Route.put() requires a callback function but got a [object Undefined]
at Route.<computed> [as put] (C:\Projects\ProjetNode\The-continental\node_modules\express\lib\router\route.js:202:15)
at Function.proto.<computed> [as put] (C:\Projects\ProjetNode\The-continental\node_modules\express\lib\router\index.js:510:19)
at Object.<anonymous> (C:\Projects\ProjetNode\The-continental\routes\reservation.js:20:12)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (C:\Projects\ProjetNode\The-continental\app.js:16:25)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! the-continental@0.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the the-continental@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ASUS\AppData\Roaming\npm-cache\_logs\2021-06-13T21_23_57_674Z-debug.log
谁能帮我解决这个问题?