Skip to content
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

Unable to create DB #1

Closed
ckageni1 opened this issue Jan 3, 2018 · 6 comments
Closed

Unable to create DB #1

ckageni1 opened this issue Jan 3, 2018 · 6 comments

Comments

@ckageni1
Copy link

ckageni1 commented Jan 3, 2018

Unable to create DB. Reference below for the error. Please advise.

ERROR: Error reading "server\config\config.json". Error: SyntaxError: C:\Users\Charles\Desktop\Postman\postman-master\server\config\config.json: Unexpected token c in JSON at position 65

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! postman@0.0.0 db:create: sequelize db:create && npm run db:migrate && npm run db:seed
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the postman@0.0.0 db:create 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:\Users\Charles\AppData\Roaming\npm-cache_logs\2018-01-03T01_46_34_576Z-debug.log

C:\Users\Charles\Desktop\Postman\postman-master\server\config>npm install
openssl config failed: error:02001003:system library:fopen:No such process
npm WARN rollback Rolling back node-pre-gyp@0.6.36 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\Users\Charles\Desktop\Postman\postman-master\node_modules\fsevents\node_modules'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

@taylonr
Copy link
Owner

taylonr commented Jan 3, 2018

C:\Users\Charles\Desktop\Postman\postman-master\server\config\config.json: Unexpected token c in JSON at position 65

Can you post what your config.json file looks like?

@ckageni1
Copy link
Author

ckageni1 commented Jan 4, 2018

{
"development": {
"username": "postgres",
"password": chuck,
"database": "postman_dev",
"host": "localhost",
"port": 5432,
"dialect": "postgres"
},
"test": {
"username": "postgres",
"password": chuck,
"database": "postman_test",
"host": "localhost",
"port": 5432,
"dialect": "postgres"
}
}

@taylonr
Copy link
Owner

taylonr commented Jan 4, 2018

The problem is, you need to surround chuck in quotes, like "chuck" similar to how "postgres" or "postman_dev".

@ckageni1
Copy link
Author

ckageni1 commented Jan 4, 2018

Excellent that worked. Thank you !

@ckageni1 ckageni1 closed this as completed Jan 4, 2018
@taylonr
Copy link
Owner

taylonr commented Apr 7, 2020

What error are you getting?

@andrew-lundy
Copy link

What error are you getting?

Nevermind, fixed it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants