-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db:setup TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received null #180
Comments
Hi, here's the output that I have at the step ➜ Pizzly git:(master) yarn db:setup
yarn run v1.22.4
$ npm run db:create && npm run db:migrate
npm WARN lifecycle The node binary used for scripts is /var/folders/s7/6n2pqdss23s5ls43x8wcct8h0000gn/T/yarn--1606125457164-0.7456167302932317/node but npm is using /Users/corentinbrossault/.fnm/node-versions/v10.16.3/installation/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> pizzly@0.2.0 db:create /Users/corentinbrossault/Bearer/tmp/Pizzly
> node dist/src/lib/database/config/create
npm WARN lifecycle The node binary used for scripts is /var/folders/s7/6n2pqdss23s5ls43x8wcct8h0000gn/T/yarn--1606125457164-0.7456167302932317/node but npm is using /Users/corentinbrossault/.fnm/node-versions/v10.16.3/installation/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> pizzly@0.2.0 db:migrate /Users/[filtered]/Pizzly
> knex --cwd dist/src/lib/database/config migrate:latest
Using environment: development
Already up to date
✨ Done in 1.78s. Apart from the two warnings, it states that it successfully managed to initiate the database. So you have probably an issue with your local configuration. Can you share your .envrc (by filtering the credentials)? |
Here is the content but I get the error no matter which env variables I fill or not.
|
Got it. Sounds like an issue between your local configuration and the |
Thanks I think it works now after changing the conf file. I then had to set the env variables inside the windows variables manager because running the envrc did not appear to work. |
I am doing the getting started, I have all the requirements, node installed, postgres running, I can login via pgadmin. I cloned the repo, yarn install,I entered the log in informations in the .envrc for DB_USER, DB_PASSWORD, etc. Everything above the "Database connection" section I did not change.
Then yarn db:setup gives this error:
The text was updated successfully, but these errors were encountered: