mitsuhiko / mitsuhiko/flask-pastebin
TypeError: path.existsSync is not a function
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 266
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm trying to run this example, but when I execute in terminal:
juggernaut
it responds:
/usr/lib/node_modules/juggernaut/lib/juggernaut/server.js:12
if (path.existsSync(keysPath + "/privatekey.pem") && path.existsSync(keysPath + "/certificate.pem")) {
^
TypeError: path.existsSync is not a function
at Object.<anonymous> (/usr/lib/node_modules/juggernaut/lib/juggernaut/server.js:12:10)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/lib/node_modules/juggernaut/lib/juggernaut/index.js:4:15)
at Module._compile (module.js:541:32)
Do you know how to solve it?
Thanks a lot
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/juggernaut/server.js at line 12 and reproduce the failure by running the juggernaut command from the issue. Check the path-related call involved in the TypeError; done means the example starts without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100