Skip to content

The packed executable file cannot work #166

@ginkgoch

Description

@ginkgoch

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions