Skip to content

pkg does not work with this > Warning Cannot include file %1 into executable. log.js:55 The file must be distributed with executable as %2. log.js:40 %1: node_modules/node-notifier/vendor/notifu/notifu.exe log.js:40 %2: path-to-executable/notifier/notifu.exe #435

Description

@jmw11x

Please let me know where I'm going wrong, hopefully I am making a mistake. pkg . and pkg index.js get same result. Set up through ec2 instance on aws (reason for ssh)

From previous solutions I saw cp to path to executable. What is that path? Why is mine not working?

Screen Shot 2023-06-06 at 5 03 58 PM
Screen Shot 2023-06-06 at 5 04 09 PM

Seen other issues and tried solutions with no success.

package.json

{
"name": "notifiy",
"version": "1.0.0",
"description": "",
"main": "index.js",
"bin": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"babel": "^6.23.0",
"node-notifier": "^10.0.1",
"path": "^0.12.7",
"ssh2": "^1.13.0"
}
}

Running locally node index.js works... after accepting permissions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions