Code Monkey home page Code Monkey logo

jwtauthbackend's People

Contributors

jakex7 avatar nsquik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jwtauthbackend's Issues

Unix sockets not supported on this platform

After following all the steps, I ran yarn dev and I got this error ...

$ yarn dev
yarn run v1.22.17
$ ts-node-dev -r tsconfig-paths/register src/index.ts
Using ts-node version 8.10.2, typescript version 4.1.3
(node:14548) UnhandledPromiseRejectionWarning: Error: Error: 
Invalid `prisma.queryRaw()` invocation:


  Unix sockets not supported on this platform
    at C:\Users\shake\Desktop\www\JWTAuthBackend\src\index.ts:65:15
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14548) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14548) [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.
Done in 2.50s.

Error when run the project

I was looking through your tutorial, but i wasn´t able to follow because i got an error when execute this line: npx prisma migrate dev --name newMigration --preview-feature

image

Error: P1000

Hello, I'm new to Postgress and Back-end in general, And I tried to follow the instructions, but after installing Postgress and then installing all the packages and created the .env file with the content suggested, I tried to run "npx prisma migrate dev --name newMigration --preview-feature", but then I got this error ...

$ npx prisma migrate dev --name newMigration --preview-feature
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Datasource "db": PostgreSQL database "prismadb", schema "public" at "localhost:5432"

Error: P1000: Authentication failed against database server at `localhost`, the provided database credentials for `postgres` are not valid.

Please make sure to provide valid database credentials for the database server at `localhost`.

What am I doing wrong here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.