Debugger listening on ws://127.0.0.1:38411/ed607848-ff76-4e67-96d2-f4fce9e93a93 For help, see: https://nodejs.org/en/docs/inspector Debugger attached. Waiting for the debugger to disconnect... /home/edk24/Desktop/code/woc-api/node_modules/express-jwt/lib/index.js:22 if (!options.algorithms) throw new Error('algorithms should be set'); ^
Error: algorithms should be set at module.exports (/home/edk24/Desktop/code/woc-api/node_modules/express-jwt/lib/index.js:22:34) at Object.<anonymous> (/home/edk24/Desktop/code/woc-api/app.js:19:3) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32) at Function.Module._load (internal/modules/cjs/loader.js:879:14) at Module.require (internal/modules/cjs/loader.js:1026:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/home/edk24/Desktop/code/woc-api/bin/www:7:11) at Module._compile (internal/modules/cjs/loader.js:1138:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! woc-api@0.0.0 start: `node ./bin/www` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the woc-api@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! /home/edk24/.npm/_logs/2020-07-31T09_18_16_982Z-debug.log Waiting for the debugger to disconnect...
从错误信息中得到一个异常错误algorithms should be set,意思告诉我们没有设置算法。