Comments (10)
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.
from vutron.
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
.
from vutron.
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.
from vutron.
and in ubuntu ,cnpm i
open file wrong
> [email protected] 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
from vutron.
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.
from vutron.
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 [email protected] › vue-demi@* run "node ./scripts/postinstall.js", root: "/home/test/source/vutron/node_modules/[email protected]@vue-demi"
[1/4] scripts.postinstall [email protected] › vue-demi@* finished in 122ms
[2/4] scripts.postinstall [email protected] › esbuild@^0.15.9 run "node install.js", root: "/home/test/source/vutron/node_modules/[email protected]@esbuild"
[2/4] scripts.postinstall [email protected] › 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/[email protected]@electron"
[3/4] scripts.postinstall electron@^21.2.0 finished in 4s
[4/4] scripts.postinstall [email protected] run "npm run lint:fix", root: "/home/test/source/vutron"
> [email protected] lint:fix
> eslint --ext .js,.ts,.vue -f ./node_modules/eslint-friendly-formatter --fix src
[4/4] scripts.postinstall [email protected] 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 [email protected] › 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 [email protected] › [email protected] › @types/[email protected] › @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 [email protected] › [email protected] › 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)
from vutron.
BTW, I tested cnpm
outside of China, so actual output may vary. Please let me know if the problem persists.
from vutron.
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 [email protected] › vue-demi@* run "node ./scripts/postinstall.js", root: "/home/leeyc/桌面/nvm/test/vu/node_modules/[email protected]@vue-demi"
[1/3] scripts.postinstall [email protected] › vue-demi@* finished in 87ms
[2/3] scripts.postinstall [email protected] › esbuild@^0.15.9 run "node install.js", root: "/home/leeyc/桌面/nvm/test/vu/node_modules/[email protected]@esbuild"
[2/3] scripts.postinstall [email protected] › 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/[email protected]@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 [email protected] › vue-demi@* requires a peer of @vue/composition-api@^1.0.0-rc.1 but none was installed
peerDependencies WARNING [email protected] › @docsearch/[email protected] › @docsearch/[email protected] 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 [email protected] › @docsearch/[email protected] › @docsearch/[email protected] 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 [email protected] › @docsearch/[email protected] › @docsearch/[email protected] 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 [email protected] › [email protected] › @types/[email protected] › @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 [email protected] › [email protected] › electron-osx-sign@^0.6.0 Please use @electron/osx-sign moving forward. Be aware the API is slightly different
deprecate [email protected] › [email protected] › @electron/[email protected] › 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/[email protected]@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
from vutron.
Side Note: vitepress and related plugins have been changed to be optionally installed.
from vutron.
I'm closing the issue because it's overdue. If this problem persists, please create a new issue.
from vutron.
Related Issues (20)
- electron-rebuild work failed HOT 3
- npm run dev failed : 'ELECTRON_ENABLE_LOGGING' is not recognized as an internal or external command HOT 3
- Cannot build on Ubuntu 22.04 Windows WSL2: Cannot find module 'dmg-license' HOT 6
- Update vite-plugin-electron to 0.15.4 HOT 4
- MaxListenersExceededWarning because of window.mainApi.receive HOT 3
- [NFR] Add github action HOT 2
- Sent events in Preload Script HOT 3
- The CJS build of Vite's Node API is deprecated. HOT 1
- Troubles with build HOT 2
- VSCode launch configurations
- No problem HOT 1
- in development some images can be show in my project but when i use npm run build:win these images can't show HOT 1
- can't find the right file path HOT 1
- in production how to build two html entrance
- Could not resolve entry module "src/renderer/src/main/index.ts". HOT 2
- suggestion: provide an overview of the files in the template HOT 1
- add discussions to this git repo HOT 1
- Error launching app when adding third party libs in main process HOT 3
- [Feature Request] Please Add a Test Framework HOT 3
- Dynamic require of "electron" is not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vutron.