GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.31k stars 309 forks source link

The packed executable file cannot work #166

Open ginkgoch opened 4 years ago

ginkgoch commented 4 years ago

I tired to build a pretty simple demo with pkg, but it failed to run on macOS. Do I need to do something more? It failed with following issue:

_Google Chrome cannot read and write to its data directory: /snapshot/carlo-desktop/nodemodules/carlo/lib/.local-data/profile-stable

This is my package.json:

{
  "name": "carlo-desktop",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "bin": {
    "carlo-desktop": "./index.js"
  },
  "pkg": {
    "scripts": "*.js",
    "assets": "src/**/*"
  },
  "dependencies": {
    "canvas": "^2.6.1",
    "carlo": "^0.9.46"
  },
  "devDependencies": {
    "pkg": "^4.4.2"
  }
}