最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

electron - Meteor-Desktop (Community) - Build Failing due to link out of package - Stack Overflow

programmeradmin1浏览0评论

I have some local node.js packages

In settings.json I have linked these through, however on one of them am getting an error stating the package links out of the package and this terminates meteor-desktop run script (uses electron automatically)

Do you have a workaround solution as I cannot update the parts of the package that are linking out.

Am running npm run desktop -- package --server-only

Running in WSL Ubuntu - overall program folder is in the home directory following a number of other issues.

This is the error (personal bits removed)

DEBUG electronApp: moving node_modules to app dir DEBUG electronApp: packing (node:8805) UnhandledPromiseRejectionWarning: Error: /home/walletub/.meteor/desktop-build/app/node_modules/node_package: file "../../../node_package.proto" links out of the package at Filesystem.insertLink (/home/walletub/node_modules/@electron/asar/lib/filesystem.js:107:13) at handleFile (/home/walletub/node_modules/@electron/asar/lib/asar.js:132:20) at next (/home/walletub/node_modules/@electron/asar/lib/asar.js:148:11) at next (/home/walletub/node_modules/@electron/asar/lib/asar.js:149:12) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)

I am unable to find a workaround, there was a link I found earlier referncing this error being a problem to do with node_gyp and to add an exclusion but did not work.

Is this something to do with it being an asar file and attempting to prevent some kind of possible information leak from the asar?

The proto file links out to google.

Unsure what to try with this one yet hence asking.

I have some local node.js packages

In settings.json I have linked these through, however on one of them am getting an error stating the package links out of the package and this terminates meteor-desktop run script (uses electron automatically)

Do you have a workaround solution as I cannot update the parts of the package that are linking out.

Am running npm run desktop -- package --server-only

Running in WSL Ubuntu - overall program folder is in the home directory following a number of other issues.

This is the error (personal bits removed)

DEBUG electronApp: moving node_modules to app dir DEBUG electronApp: packing (node:8805) UnhandledPromiseRejectionWarning: Error: /home/walletub/.meteor/desktop-build/app/node_modules/node_package: file "../../../node_package.proto" links out of the package at Filesystem.insertLink (/home/walletub/node_modules/@electron/asar/lib/filesystem.js:107:13) at handleFile (/home/walletub/node_modules/@electron/asar/lib/asar.js:132:20) at next (/home/walletub/node_modules/@electron/asar/lib/asar.js:148:11) at next (/home/walletub/node_modules/@electron/asar/lib/asar.js:149:12) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)

I am unable to find a workaround, there was a link I found earlier referncing this error being a problem to do with node_gyp and to add an exclusion but did not work.

Is this something to do with it being an asar file and attempting to prevent some kind of possible information leak from the asar?

The proto file links out to google.

Unsure what to try with this one yet hence asking.

Share Improve this question asked 2 days ago user29563332user29563332 1 New contributor user29563332 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 0

Sorted it - need to pack the local packages and link correctly internally.

发布评论

评论列表(0)

  1. 暂无评论