吉廷范围错误 [ERR_OUT_OF_RANGE]:"sourceStart"的值超出范围。它必须是 <= 9。收到 13



我正试图使用nodemon运行节点,但在ubuntu服务器机器(20.0.2(中收到此错误。

RangeError[ERR_OUT_OF_RANGE]:;sourceStart";超出范围。它必须是<=9.收到13在新的NodeError(节点:内部/错误:372:5(at_copy(节点:缓冲区:235:11(在Buffer.copy(节点:Buffer:776:12(在Parser.parseBuffer(/home/ubuntu/cryztal_backend/nod_module/mysql/lib/protocol/Parser.js:2272:16(在HandshakeInitializationPacket.parse(/home/ubuntu/cryztal_backend/node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js:34:37(协议_parsePacket(/home/ubuntu/cryztal_backend/nod_module/mysql/lib/protocol/protocol.js:2272:12(在Parser_parsePacket(/home/ubuntu/cryztal_backend/nod_module/mysql/lib/protocol/Parser.js:433:10(在Parser.write(/home/ubuntu/cryztal_backend/nod_module/mysql/lib/protocol/Passer.js:43:10(在Protocol.write(/home/ubuntu/cryztal_backend/node_modules/mysql/lib/Protocol/Protocol.js:38:16(在Socket。(/home/ubuntu/cryztal_backend/node_modules/mysql/lib/Connection.js:88:28({代码:'ERR_OUT_OF_RANGE'}[节点]应用程序崩溃-在启动之前等待文件更改。。。

ormConfig{"类型":"mysql";,"主机":"localhost";,"端口":33060中,"用户名":"根";,"密码":"根";,"数据库":"cryztal-dev";,"同步":是的,"日志记录":false,"migrationTableName":"迁移";,"实体":["src/entity//*.ts"],"迁移":["src/migration//.ts"],"订阅者":["src/subscriber/**/.ts"],"cli":{"entities Dir":"src/entity";,"migrationsDir":"src/migration";,"subscribersDir":"src/subscriber";}}

数据源.ts

export const AppDataSource=新DataSource({类型:'mysql',host:'localhost',端口:33060,username:'root',密码:"root",数据库:'cryztal_dev',synchronize:true,日志记录:false,实体:[使用者PRIMARY.PARTNER.PARTNER,PRIMARY.DEALS.DEALS,PRIMARY.ADMIN.ADMIN,CATEGORY_MASTER.CategoryMaster,隐私政策,子类别。子类别物料,],迁移:[],订阅者:[],});

我收到了这个错误。当我最初进行设置时,在运行Nodejs时。问题是我没有创建在ORMconfig.js.中配置的DB

因此,请确保数据库设置正确。

相关内容

  • 没有找到相关文章

最新更新