server@1.0.0 start nodemon index.js
[nodemon] 2.0.21 [nodemon]要随时重新启动,请输入rs
[nodemon] watching path(s):. [nodemon] watching extensions:日本、马来西亚、日本
[nodemon]启动node index.js
服务器在PORT 8000 D:\ecommerce\server\node_modules\mongoose\lib\model.js:3144 for(let i = 0;i〈error.writeErrors.length;++i){ ^
TypeError:无法读取未定义的属性(阅读“length”)
at D:\ecommerce\server\node_modules\mongoose\lib\model.js:3144:47 [nodemon] app crashed - waiting for file changes before starting...
请帮我解决这个问题。
1条答案
按热度按时间cbeh67ev1#
error和error.writeErrors返回什么?