The result of using VS Code in debugging is not consistent with that of webStrom.

Express simple blog
do a simple blog site with the above tutorials, but when you link to the MongoDB database, you will find a problem. Using webStrom will not report an error, while vsCode debugging will not report the following error:
*

exception: Error Error: ENOTDIR: not a directory, stat
"/ Users/QFYY/WebstormProjects/Node_Express_study/microblo/node_modules/require_optional/index.js/package.json"

at fs.existsSync (fs.js:329:13)
at find_package_json (/Users/QFYY/WebstormProjects/Node_Express_study/microblo/node_modules/require_optional/index.js:14:9)
at find_package_json_with_name (/Users/QFYY/WebstormProjects/Node_Express_study/microblo/node_modules/require_optional/index.js:34:20)
at require_optional (/Users/QFYY/WebstormProjects/Node_Express_study/microblo/node_modules/require_optional/index.js:69:13)
at Object.<anonymous> (/Users/QFYY/WebstormProjects/Node_Express_study/microblo/node_modules/mongodb-core/index.js:6:20)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)

what on earth is the reason for this

Menu