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

Linux build question #4

Closed
mdeche101644 opened this issue Oct 23, 2022 · 10 comments
Closed

Linux build question #4

mdeche101644 opened this issue Oct 23, 2022 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@mdeche101644
Copy link

mdeche101644 commented Oct 23, 2022

hello when I build linux ,it have a mistake

• cannot get, wait  error=Get "https://service.electron.build/find-build-agent?no-cache=1hl9o7p": dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it.
                      attempt=2
                      waitTime=6
  ⨯ Get "https://service.electron.build/find-build-agent?no-cache=1hl9o7p": dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it.
  ⨯ Cannot cleanup:

Error #1 --------------------------------------------------------------------------------
Error: Please specify project homepage, see https://electron.build/configuration/configuration#Metadata-homepage
    at FpmTarget.computeFpmMetaInfoOptions (C:\tools\5.coding\nvm\Vue\vutron\node_modules\app-builder-lib\src\targets\fpm.ts:86:13)
    at RemoteTarget.doBuild (C:\tools\5.coding\nvm\Vue\vutron\node_modules\app-builder-lib\src\linuxPackager.ts:116:5)

so what's mean. and how could i fix it,thank you

@jooy2
Copy link
Owner

jooy2 commented Oct 23, 2022

Hello. Thank you for using Vutron and for reporting issues!

It looks like you need a homepage value in your package.json when building a linux package.

Add the following values to your package.json:

{
     // ...
    "homepage": "YOUR_PROJECT_HOMEPAGE_OR_GIT_URL"
     // ...
}

Note: The current master branch has been modified to include the homepage default in package.json.

@mdeche101644
Copy link
Author

mdeche101644 commented Oct 23, 2022

hello,I find it is looks like 'electron-userland/electron-build-service#9' . this problem looks like electron-build 's ,and i use linux to build , haven't resolve it . do you have any good mothod to resole it? by the way ,'homepage' didn't resolve this problem.

@mdeche101644
Copy link
Author

mdeche101644 commented Oct 23, 2022

and in ubuntu ,cnpm i
open file wrong

> vutron@1.0.0 lint:fix
> eslint --ext .js,.ts,.vue -f ./node_modules/eslint-friendly-formatter --fix src

  • electron-builder  version=23.6.0
  • loaded configuration  file=/home/leeyc/桌面/nvm/vutron/electron-builder.json5
  ⨯ open /home/leeyc/桌面/nvm/vutron/node_modules/vue-i18n/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/vue-devtools/node_modules/@intlify/core-base/node_modules/@intlify/devtools-if/package.json: too many levels of symbolic links
github.com/develar/app-builder/pkg/node-modules.(*Collector).resolveDependency
	/Volumes/data/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:197
github.com/develar/app-builder/pkg/node-modules.(*Collector).processDependencies
	/Volumes/data/Documents/app-builder/pkg/node-modules/nodeModuleCollector.go:100

@jooy2
Copy link
Owner

jooy2 commented Oct 24, 2022

I also confirmed that the problem is reproduced with cnpm. Thanks for letting me know.

If npm is available in your environment, can you tell me if the problem persists using npm instead of cnpm?
In my case, there was no problem on Ubuntu 22.04 + NodeJS 18.16 (with n) + latest npm.

$ npm install

cnpm also seems to temporarily fail to fetch some of the latest dependency packages.

@mdeche101644
Copy link
Author

mdeche101644 commented Oct 24, 2022

Thank you for your working.
I use vpn to across the firewall and It worked.
Other Chinese people don't use 'registry.npmmirror.com' and 'registry.npm.taobao.org'. just across the gfw.

Thank you very much again.

@jooy2
Copy link
Owner

jooy2 commented Oct 24, 2022

After checking a little more, it seems that there is a problem in the process of building the Native Node Module of Electron-builder.

{
    "scripts": {    
        "postinstall": "npm run lint:fix && electron-builder install-app-deps" // << this line
    }
}

In general, the electron-builder install-app-deps option is not used, so it has been modified not to be performed with postinstall, and a guide has been added to allow developers to selectively add them if necessary.

Now, I have confirmed that there is no problem with the installation even with cnpm based on the master branch. (at least for the current dependency package list)

Thanks for your help in fixing the problem!
I plan to move this issue to close soon.


$ cnpm i
✔ Installed 28 packages
✔ Linked 452 latest versions
[1/4] scripts.postinstall pinia@2.0.23 › vue-demi@* run "node ./scripts/postinstall.js", root: "/home/test/source/vutron/node_modules/_vue-demi@0.13.11@vue-demi"
[1/4] scripts.postinstall pinia@2.0.23 › vue-demi@* finished in 122ms
[2/4] scripts.postinstall vite@3.1.8 › esbuild@^0.15.9 run "node install.js", root: "/home/test/source/vutron/node_modules/_esbuild@0.15.12@esbuild"
[2/4] scripts.postinstall vite@3.1.8 › esbuild@^0.15.9 finished in 79ms
[3/4] scripts.postinstall electron@^21.2.0 run "node install.js", root: "/home/test/source/vutron/node_modules/_electron@21.2.0@electron"
[3/4] scripts.postinstall electron@^21.2.0 finished in 4s
[4/4] scripts.postinstall vutron@1.0.0 run "npm run lint:fix", root: "/home/test/source/vutron"

> vutron@1.0.0 lint:fix
> eslint --ext .js,.ts,.vue -f ./node_modules/eslint-friendly-formatter --fix src

[4/4] scripts.postinstall vutron@1.0.0 finished in 2s
✔ Run 4 scripts
peerDependencies WARNING pinia@^2.0.22 requires a peer of @vue/composition-api@^1.4.0 but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of less@* but none was installed
peerDependencies WARNING vuetify@^3.0.0-beta.13 requires a peer of vite-plugin-vuetify@^1.0.0-alpha.12 but none was installed
peerDependencies WARNING pinia@2.0.23 › vue-demi@* requires a peer of @vue/composition-api@^1.0.0-rc.1 but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of sass@* but none was installed
peerDependencies WARNING vuetify@^3.0.0-beta.13 requires a peer of webpack-plugin-vuetify@^2.0.0-alpha.11 but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of stylus@* but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of terser@^5.4.0 but none was installed
anti semver electron@21.2.0 › extract-zip@2.0.1 › @types/yauzl@2.10.0 › @types/node@* delcares @types/node@*(resolved as 18.11.4) but using ancestor(electron)'s dependency @types/node@^16.11.26(resolved as 16.18.0)
deprecate electron-builder@23.6.0 › app-builder-lib@23.6.0 › electron-osx-sign@^0.6.0 Please use @electron/osx-sign moving forward. Be aware the API is slightly different
✔ All packages installed (491 packages installed from npm registry, used 26s(network 19s), speed 0B/s, json 0(0B), tarball 0B, manifests cache hit 475, etag hit 246 / miss 0)

@jooy2
Copy link
Owner

jooy2 commented Oct 24, 2022

BTW, I tested cnpm outside of China, so actual output may vary. Please let me know if the problem persists.

@jooy2 jooy2 added the bug Something isn't working label Oct 24, 2022
@jooy2 jooy2 self-assigned this Oct 24, 2022
@mdeche101644
Copy link
Author

mdeche101644 commented Oct 24, 2022

BTW, I tested cnpm outside of China, so actual output may vary. Please let me know if the problem persists.

I think that cnpm is too difficult to use. The first time I executed cnpm, there was no vitepress sidebar. I executed cnpm sync vitepress sidebar, and then executed the following

cnpm i
✔ Installed 30 packages
✔ Linked 485 latest versions
[1/3] scripts.postinstall pinia@2.0.23 › vue-demi@* run "node ./scripts/postinstall.js", root: "/home/leeyc/桌面/nvm/test/vu/node_modules/_vue-demi@0.13.11@vue-demi"
[1/3] scripts.postinstall pinia@2.0.23 › vue-demi@* finished in 87ms
[2/3] scripts.postinstall vite@3.1.8 › esbuild@^0.15.9 run "node install.js", root: "/home/leeyc/桌面/nvm/test/vu/node_modules/_esbuild@0.15.12@esbuild"
[2/3] scripts.postinstall vite@3.1.8 › esbuild@^0.15.9 finished in 56ms
[3/3] scripts.postinstall electron@^21.2.0 run "node install.js", root: "/home/leeyc/桌面/nvm/test/vu/node_modules/_electron@21.2.0@electron"
[3/3] scripts.postinstall electron@^21.2.0 finished in 2s
✔ Run 3 scripts
peerDependencies WARNING pinia@^2.0.22 requires a peer of @vue/composition-api@^1.4.0 but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of less@* but none was installed
peerDependencies WARNING vuetify@^3.0.0-beta.13 requires a peer of vite-plugin-vuetify@^1.0.0-alpha.12 but none was installed
peerDependencies WARNING pinia@2.0.23 › vue-demi@* requires a peer of @vue/composition-api@^1.0.0-rc.1 but none was installed
peerDependencies WARNING vitepress@1.0.0-alpha.22 › @docsearch/js@3.2.2 › @docsearch/react@3.2.2 requires a peer of @types/react@>= 16.8.0 < 19.0.0 but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of sass@* but none was installed
peerDependencies WARNING vuetify@^3.0.0-beta.13 requires a peer of webpack-plugin-vuetify@^2.0.0-alpha.11 but none was installed
peerDependencies WARNING vitepress@1.0.0-alpha.22 › @docsearch/js@3.2.2 › @docsearch/react@3.2.2 requires a peer of react@>= 16.8.0 < 19.0.0 but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of stylus@* but none was installed
peerDependencies WARNING vitepress@1.0.0-alpha.22 › @docsearch/js@3.2.2 › @docsearch/react@3.2.2 requires a peer of react-dom@>= 16.8.0 < 19.0.0 but none was installed
peerDependencies WARNING vite@^3.1.4 requires a peer of terser@^5.4.0 but none was installed
anti semver electron@21.2.0 › extract-zip@2.0.1 › @types/yauzl@2.10.0 › @types/node@* delcares @types/node@*(resolved as 18.11.5) but using ancestor(electron)'s dependency @types/node@^16.11.26(resolved as 16.18.0)
deprecate electron-builder@23.6.0 › app-builder-lib@23.6.0 › electron-osx-sign@^0.6.0 Please use @electron/osx-sign moving forward. Be aware the API is slightly different
deprecate electron-builder@23.6.0 › app-builder-lib@23.6.0 › @electron/universal@1.2.1 › asar@^3.1.0 Please use @electron/asar moving forward.  There is no API change, just a package name change
✔ All packages installed (524 packages installed from npm registry, used 7s(network 5s), speed 71.88KB/s, json 12(388.31KB), tarball 0B, manifests cache hit 496, etag hit 496 / miss 12)

and then I found the problem of the file '/src/renderer/plugins/vuetify.ts'

无法找到模块“vuetify/lib/util/colors.mjs”的声明文件。“/home/leeyc/桌面/nvm/test/vu/node_modules/_vuetify@3.0.0-beta.14@vuetify/lib/util/colors.mjs”隐式拥有 "any" 类型。
  如果“vuetify”包实际公开了此模块,请尝试添加包含 `declare module‘vuetify/lib/util/colors.mjs';` 的新声明(.d.ts)文件ts(7016)
src/renderer/plugins/vuetify.ts:10:5 - error TS2322: Type '{ messages: { ko: { badge: string; close: string; dataIterator: { noResultsText: string; loadingText: string; }; dataTable: { itemsPerPageText: string; ariaLabel: { sortDescending: string; sortAscending: string; sortNone: string; activateNone: string; activateDescending: string; activateAscending: string; }; sortBy:...' is not assignable to type 'LocaleOptions & RtlOptions'.
  Object literal may only specify known properties, and 'defaultLocale' does not exist in type 'LocaleOptions & RtlOptions'.

10     defaultLocale: 'en',
       ~~~~~~~~~~~~~~~~~~~
Found 1 error in src/renderer/plugins/vuetify.ts:10

@jooy2
Copy link
Owner

jooy2 commented Nov 1, 2022

Side Note: vitepress and related plugins have been changed to be optionally installed.

@jooy2
Copy link
Owner

jooy2 commented Dec 13, 2022

I'm closing the issue because it's overdue. If this problem persists, please create a new issue.

@jooy2 jooy2 closed this as completed Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants