Aktualisieren Sie NPM
// update npm//
npm install -g npm@latest
Code_Breaker
// update npm//
npm install -g npm@latest
const query = {} //your query here
const update = {} //your update in json here
const option = {new: true} //will return updated document
const user = await User.findOneAndUpdate(query , update, option)