Closed TaylorWorthing closed 9 years ago
The first errors can be ignored, just as they say.
The second problem is due to a configuration problem. You need to edit the file /home/browncoat/keepass-node/keepass-node-config.js
so that it either reads from existing certificate files or you may remove the lines completely and set the https.enabled
flag to false
. See this minimal example with disabled https support:
module.exports = {
"port": 8443,
"https": {
"enabled": false
},
"basicAuth": {
"enabled": false
},
"googleDrive": {
"enabled": false
}
};
Using your barebones config does remove the error regarding the missing certificate. However, it is still failing to run, and is giving a new message.
/home/browncoat/keepass-node/keepass-node-config.js:7 "basicAuth": { ^ SyntaxError: Unexpected token : at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at /home/browncoat/keepass-node/server.js:4:16 at Object.
(/home/browncoat/keepass-node/server.js:65:3) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10)
The rest of the npm error messages are the same regarding exit status and environment info.
@TaylorWorthing could you please post your complete config file? now the error looks like some comma or bracket is missing.
@TaylorWorthing like mentioned in the Installation readme it should also be enough to use this minimal config to only set the desired port:
module.exports = {
"port": 8443
};
Config is as follows
module.exports = {
"port": 8443,
"https": {
"enabled": false,
}
},
"basicAuth": {
"enabled": false,
},
"googleDrive": {
"enabled": false,
},
}
};
Using just the port setting and nothing else, it works.
ah, well that's some invalid syntax with some commas and curly braces too much in this config. Please replace the config with exactly the content below. You can have a look at the differences online.
module.exports = {
"port": 8443,
"https": {
"enabled": false
},
"basicAuth": {
"enabled": false
},
"googleDrive": {
"enabled": false
}
};
@TaylorWorthing did it work with the fixed syntax now?
@gesellix Sorry for the delayed response, I had to start migrating servers. I tested the last config you gave me and it does indeed work. Thank you greatly. Just for clarity, when there is only one option (like "enabled": false), you need to remove the commas.
I did notice one other small issue, I don't know if it should be submitted as it's own issue. The entry view does not parse line breaks in the notes section. Is this something that can be fixed with particular formatting in the notes or is this a bug?
@TaylorWorthing I would consider that as bug on my side. Could you please open a dedicated issue for that? I'm currently working on write support on another branch, so I could add a bugfix for the notes formatting on that branch quite quickly. It would help if you added an example of the notes content in the new issue. Thanks!
After 'npm install', These errors come up in the output.
It says to not worry about the messages, so I moved on to start the package with 'npm start'. Here is the output.
The mentioned npm-debug.log file shows basically the same output as above.
I am unsure if this is an issue with keepass-node or if it is an issue with my environment, but I can say that node and npm are working correctly for other packages.