강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

terecal님의 프로필 이미지
terecal

작성한 질문수

Node.js 교과서 - 기본부터 프로젝트 실습까지

시퀄라이즈 관계 설정하기

에러 때문에 질문드려여

작성

·

158

0

에러 때문에 질문드려여

실행

(fast) C:fast_ajaxnpm_startlearn-sequelize>npm start

에러 내용

learn-sequelize@0.0.0 start C:fast_ajaxnpm_startlearn-sequelize

node ./bin/www

sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/tutorial/querying.html#operators node_modulessequelizelibsequelize.js:242:13

crypto.js:99

this._handle.update(data, encoding);

^

TypeError: Data must be a string or a buffer

at Hash.update (crypto.js:99:16)

at sha1 (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libauth_41.js:31:8)

at Object.token [as calculateToken] (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libauth_41.js:65:18)

at new HandshakeResponse (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libpacketshandshake_response.js:28:26)

at ClientHandshake.sendCredentials (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libcommandsclient_handshake.js:51:31)

at ClientHandshake.handshakeInit (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libcommandsclient_handshake.js:137:12)

at ClientHandshake.execute (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libcommandscommand.js:39:22)

at Connection.handlePacket (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libconnection.js:455:32)

at PacketParser.onPacket (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libconnection.js:73:18)

at PacketParser.executeStart (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libpacket_parser.js:75:16)

at Socket. (C:fast_ajaxnpm_startlearn-sequelizenode_modulesmysql2libconnection.js:80:31)

at emitOne (events.js:116:13)

at Socket.emit (events.js:211:7)

at addChunk (_stream_readable.js:263:12)

at readableAddChunk (_stream_readable.js:250:11)

at Socket.Readable.push (_stream_readable.js:208:10)

at TCP.onread (net.js:597:20)

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! C:UsershyunsepkAppDataRoamingnpm-cache_logs2018-11-21T11_28_01_102Z-debug.log

답변 1

0

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

비밀번호가 제대로 입력되었고 서버로 전달되었는지 확인해보세요.

terecal님의 프로필 이미지
terecal

작성한 질문수

질문하기