#166·carlo

The packed executable file cannot work

Author: ginkgochCreated Jan 8, 2020Updated Jan 8, 2020

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/node_modules/carlo/lib/.local-data/profile-stable

This is my package.json:

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"
  }
}