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

Fix link out of package error #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prahal
Copy link

@prahal prahal commented Sep 23, 2022

install.sh error out with:
/usr/lib/node_modules/asar/lib/filesystem.js:101
throw new Error(${p}: file "${link}" links out of the package)
^

Error: app/node_modules/abstract-socket/build/node_gyp_bins/python3: file "../../../../../../../../usr/bin/python3.10" links out of the package
at Filesystem.insertLink (/usr/lib/node_modules/asar/lib/filesystem.js:101:13)
at handleFile (/usr/lib/node_modules/asar/lib/asar.js:132:20)
at next (/usr/lib/node_modules/asar/lib/asar.js:148:11)
at next (/usr/lib/node_modules/asar/lib/asar.js:149:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

workaround it by removing this symlink before calling "asar pack app app.asar".

The upstream issue is not fixed yet:
nodejs/node-gyp#2713
"node_gyp_bins causes build failures in downstream packages"

install.sh error out with:
/usr/lib/node_modules/asar/lib/filesystem.js:101
      throw new Error(`${p}: file "${link}" links out of the package`)
            ^

Error: app/node_modules/abstract-socket/build/node_gyp_bins/python3: file "../../../../../../../../usr/bin/python3.10" links out of the package
    at Filesystem.insertLink (/usr/lib/node_modules/asar/lib/filesystem.js:101:13)
    at handleFile (/usr/lib/node_modules/asar/lib/asar.js:132:20)
    at next (/usr/lib/node_modules/asar/lib/asar.js:148:11)
    at next (/usr/lib/node_modules/asar/lib/asar.js:149:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

workaround it by removing this symlink before calling "asar pack app app.asar".

The upstream issue is not fixed yet:
nodejs/node-gyp#2713
"node_gyp_bins causes build failures in downstream packages"
@ghost
Copy link

ghost commented Oct 8, 2022

Hello, could you make a PR of this in my fork?

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

Successfully merging this pull request may close these issues.

1 participant