Sequelize 迁移问题和 npm start 问题,它们不运行

问题描述

我遇到的问题在下面的附件中很清楚,我运行了 sequelize db:migrate 并且它没有做任何事情就阻塞了。我运行 npm start && sequelize db:migrate 并在 npm start 时被阻止。有人经历过吗? 起初我以为是节点版本问题,我使用的是 14.17.2 我最终降级到 13.13.0 但我仍然有同样的问题,我的项目将在 3 天内到期,我被困在这里

附件如下:my console's pov

{
  "name": "immobis-rest-client","version": "0.0.0","private": true,"scripts": {
    "start": "node ./bin/www"
  },"dependencies": {
    "body-parser": "^1.19.0","cookie-parser": "~1.4.4","cors": "^2.8.5","debug": "~2.6.9","ejs": "~2.6.1","express": "~4.16.1","http-errors": "~1.6.3","morgan": "~1.9.1","node": "^16.4.0","pg": "^8.0.3","pg-hstore": "^2.3.4","pg-promise": "^10.10.2","sequelize": "^6.6.4","sequelize-cli": "^6.2.0","snyk": "^1.653.0"
  }
}

这是我的配置文件

{
  "development": {
    "username": "postgres","password": "root123","database": "Immobis","host": "localhost","dialect": "postgres","dialectOptions": {
      "ssl": true
    }
  },"test": {
    "username": "postgres","production": {
    "username": "postgres","dialectOptions": {
      "ssl": true
    }
  }
}

编辑:我发现我只是没有针对 npm start 问题的 console.log,请使用 nvm,谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)