Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmw11x opened this issue Jun 6, 2023 · 0 comments

Comments

@jmw11x
Copy link

jmw11x commented Jun 6, 2023

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.

@jmw11x jmw11x changed the title pkg does not work with this 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 Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant