This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 231
ndb closes instantly after launch (Ubuntu) #336
Comments
+1 |
Hey, It Is because Chrome cannot be run as root by default.
|
Thanks for the suggestion 👍 |
@j-koziel Welcome |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've installed it locally, globally and as a dev dependency but to no avail.
Tell us about your environment:
What steps will reproduce the problem?
package.json file
{ "name": "natours", "version": "1.0.0", "description": "Learning node, express and mongoDB", "main": "app.js", "scripts": { "start": "nodemon server.js", "start:prod": "NODE_ENV=production nodemon server.js", "debug": "ndb server.js" }, "author": "Jonathan Koziel", "license": "ISC", "dependencies": { "dotenv": "^16.0.0", "express": "^4.17.3", "mongoose": "^5.13.14", "morgan": "^1.10.0", "slugify": "^1.6.5", "validator": "^13.7.0" }, "devDependencies": { "eslint": "^8.13.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.29.4", "ndb": "^1.1.5", "prettier": "^2.6.2", "puppeteer-core": "^14.1.1" }, "engines": { "node": ">=10.0.0" } }
What is the expected result?
ndb should open and work
What happens instead?
ndb opens a window and disappears immediately after.
Video:
simplescreenrecorder-2022-05-22_09.36.32.mp4
When I use sudo no window opens but instead i get an error mentioned in a previous issue.
Error log:
sudo ndb server.js
events.js:291
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at Pipe.onStreamRead (internal/stream_base_commons.js:209:20)
Emitted 'error' event on Socket instance at:
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
The text was updated successfully, but these errors were encountered: