~/Documents/project/node/node.js_book/6.1/learn-sequelize
❯ npm start
> learn-sequelize@0.0.0 start /Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize
> node ./bin/www
(node:16387) [SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed.
internal/crypto/hash.js:70
throw new ERR_INVALID_ARG_TYPE('data',
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, Buffer, TypedArray, or DataView. Received type number
at Hash.update (internal/crypto/hash.js:70:11)
at sha1 (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/auth_41.js:31:8)
at Object.token [as calculateToken] (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/auth_41.js:65:18)
at new HandshakeResponse (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/packets/handshake_response.js:28:26)
at ClientHandshake.sendCredentials (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/commands/client_handshake.js:51:31)
at ClientHandshake.handshakeInit (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/commands/client_handshake.js:136:12)
at ClientHandshake.execute (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/commands/command.js:39:22)
at Connection.handlePacket (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/connection.js:408:32)
at PacketParser.onPacket (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/connection.js:70:12)
at PacketParser.executeStart (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/packet_parser.js:75:16)
at Socket.<anonymous> (/Users/noel/Documents/project/node/node.js_book/6.1/learn-sequelize/node_modules/mysql2/lib/connection.js:77:25)
at Socket.emit (events.js:210:5)
at addChunk (_stream_readable.js:308:12)
at readableAddChunk (_stream_readable.js:289:11)
at Socket.Readable.push (_stream_readable.js:223:10)
at TCP.onStreamRead (internal/stream_base_commons.js:182:23) {
code: 'ERR_INVALID_ARG_TYPE'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! learn-sequelize@0.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the learn-sequelize@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/noel/.npm/_logs/2019-10-26T16_07_07_216Z-debug.log
모델을 잘못 생성한줄 알았는데 문제는 엉뚱한 곳에 있었다
config/config.json
password 가 "123456" 이어야 하는데 123456 이었다 ㅠㅠ
이렇게 멍청비용으로 1시간을 지불했다
{
"development": {
"username": "root",
"password": "123456",
"database": "nodejs",
"host": "127.0.0.1",
"dialect": "mysql",
"operatorsAliases": false
},
"test": {
"username": "root",
"password": "123456",
"database": "nodejs",
"host": "127.0.0.1",
"dialect": "mysql",
"operatorsAliases": false
},
"production": {
"username": "root",
"password": "123456",
"database": "nodejs",
"host": "127.0.0.1",
"dialect": "mysql",
"operatorsAliases": false
}
}
'JS > JS__node-works' 카테고리의 다른 글
express 프로젝트 생성 (0) | 2019.10.06 |
---|---|
express 명령어 동작 안할 때 (0) | 2019.10.06 |
npm에 관하여... (0) | 2019.10.06 |
전역설치 (0) | 2019.10.06 |
cluster (0) | 2019.10.06 |