Documents\\Nodejs\\bin\\node.exe" "D:\\User\\Documents\\Nodejs\\bin\\node_modules\\npm\\bin\\npm-cli.jsMake sure you have the latest version of node.js and npm installed.
npm ERR!Documents\\Nodejs\\bin\\node.exe" "D:\\User\\Documents\\Nodejs\\bin\\node_modules\\
我想知道mongoose的这种异步/等待方式是否正确。我仍然需要使用.exec,然后用mongoose返回promise,或者我可以留下这样的东西。下面是我的代码片段:/* Func to update one user by id */ const filter = {_id: id}; const result = await User.fi