Hi all,
i have a webapp whit a couchbase node.js SDK,
i want to use a Electron for have a desktop application.
But when i start the electron app, i have this error
this is my package.json
{
"name": "Search",
"version": "0.0.1",
"description": "Simple Search Application In Couchbase.",
"main": "main.js",
"author": "jempis",
"build": {
"appId": "com.search",
"files": [
"./**/*",
"node_modules/**/*",
"package.json",
"main.js"
]
},
"script": {
"postinstall": "install-app-deps",
"start": "electron main.js",
"release": "build",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"rebuild": "electron-rebuild -f -w couchbase"
},
"dependencies": {
"body-parser": "^1.18.2",
"couchbase": "^2.0.8",
"express": "^4.16.2",
"method-override": "^2.3.10",
"morgan": "^1.9.0",
"mime": "^2.1.0"
},
"devDependencies": {
"electron": "^1.4.10",
"electron-builder": "^19.55.2",
"electron-packager": "^8.1.0",
"electron-rebuild": "^1.7.3"
}
}
and this is may project structure:
where
- ‘app’ folder contains the NodeJS “BackEnd” whit couchbase sdk
- ‘public’ folder is the AngulaJS “FrontEnd”
- server.js file is the express nodejs server
- main.js is the electron file
have any idea for resolve this error?
thanks