felmeddelande övning3 kmom02

  • Författare
  • Meddelande

wille83

css-hackare

  • Inlägg: 25
  • Blev medlem: 07 feb 2019, 23:03

felmeddelande övning3 kmom02

Inlägg09 feb 2019, 14:57

Hej!

jag jobbar med sista övningen i kmom02 och får ett felmeddelande som jag inte bör få. Någon som vet vad felet kan vara?
Kod: Markera allt
internal/modules/cjs/loader.js:583
    throw err;
    ^

Error: Cannot find module 'C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\connect_config.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)


*edit. Jag insåg att jag var under fel sökväg men kör jag i rätt "mapp" får jag följande felmeddelande:
Kod: Markera allt
Ngn duktig som vet vad felet kan va?
(node:29956) UnhandledPromiseRejectionWarning: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
    at Handshake.Sequence._packetToError (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
    at Handshake.ErrorPacket (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\protocol\sequences\Handshake.js:124:18)
    at Protocol._parsePacket (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\protocol\Protocol.js:278:23)
    at Parser.write (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\protocol\Parser.js:76:12)
    at Protocol.write (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\protocol\Protocol.js:38:16)
    at Socket.<anonymous> (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\Connection.js:91:28)
    at Socket.<anonymous> (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\Connection.js:502:10)
    at Socket.emit (events.js:189:13)
    at addChunk (_stream_readable.js:284:12)
    at readableAddChunk (_stream_readable.js:265:11)
    at Socket.Readable.push (_stream_readable.js:220:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    --------------------
    at Protocol._enqueue (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\protocol\Protocol.js:144:48)
    at Protocol.handshake (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\protocol\Protocol.js:51:23)
    at Connection.connect (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\mysql\lib\Connection.js:118:18)
    at connect (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\promise-mysql\lib\connection.js:18:33)
    at C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\promise-mysql\lib\connection.js:52:9
    at Promise._execute (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\bluebird\js\release\debuggability.js:313:9)
    at Promise._resolveFromExecutor (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\bluebird\js\release\promise.js:79:10)
    at new connection (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\promise-mysql\lib\connection.js:51:12)
    at Object.exports.createConnection (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\node_modules\promise-mysql\index.js:6:12)
    at C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\kmom02\js\connect.js:18:28
    at Object.<anonymous> (C:\cygwin64\home\hemdatorn\dbwebb-kurser\databas\me\kmom02\js\connect.js:31:3)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
(node:29956) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:29956) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Användarvisningsbild

mos

dbwebb

  • Inlägg: 10921
  • Blev medlem: 10 nov 2011, 09:52
  • Ort: Ronneby / Bankeryd

Re: felmeddelande övning3 kmom02

Inlägg09 feb 2019, 17:44

...
..:
.... /mos

Vilka är online

Användare som besöker denna kategori: Inga registrerade användare och 10 gäster