Bonjour!
Lors de l’installation des dépendances j’ai cette erreur qui m’empêche d’exécuter zwaje-js-ui:
$ npm-run-all 'build:*'
$ tsc
$ vite build
vite v4.5.3 building for production...
transforming...
✓ 6 modules transformed.
[vite-plugin-pwa:build] [vite]: Rollup failed to resolve import "vuetify" from "/var/www/html/plugins/zwavejs/resources/zwave-js-ui/src/plugins/vuetify.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
error during build:
Error: [vite]: Rollup failed to resolve import "vuetify" from "/var/www/html/plugins/zwavejs/resources/zwave-js-ui/src/plugins/vuetify.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at viteWarn (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:48216:27)
at onRollupWarning (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:48248:9)
at onwarn (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:47976:13)
at file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24276:13
at Object.logger [as onLog] (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25950:9)
at ModuleLoader.handleInvalidResolvedId (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24862:26)
at file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24822:26
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:ui" exited with 1.
error Command failed with exit code 1.
Je reviens vers vous car Debian 10/Buster est bien supporté par Jeedom.
Je pouvais me passer de zwave-js-ui mais j’en ai besoin pour mes FGRM222.
Quand je lance ce dernier, j’ai:
Error: Not Found
at /var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/app.js:1168:17
at Layer.handle [as handle_request] (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:328:13)
at /var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:346:12)
at next (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:280:10)
at session (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express-session/index.js:487:7)
at Layer.handle [as handle_request] (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:328:13)
at /var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:286:9
0051|+ echo 5
0052|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0053|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0054|Hit:1 http://ftp.fr.debian.org/debian buster InRelease
0055|Hit:2 http://security.debian.org/debian-security buster/updates InRelease
0056|Ign:3 http://deb.debian.org/debian buster-backports InRelease
0057|Err:4 http://deb.debian.org/debian buster-backports Release
0058|404 Not Found [IP: 2a04:4e42:6a::644 80]
0059|Hit:5 https://deb.nodesource.com/node_18.x buster InRelease
0060|Hit:6 http://ftp.fr.debian.org/debian buster-updates InRelease
0061|Reading package lists...
0062|E: The repository 'http://deb.debian.org/debian buster-backports Release' no longer has a Release file.
0063|Reading package lists...
0064|Building dependency tree...
0065|Reading state information...
0066|apt-utils is already the newest version (1.8.2.3).
0067|build-essential is already the newest version (12.6).
0068|lsb-release is already the newest version (10.2019051400).
0069|git is already the newest version (1:2.20.1-2+deb10u9).
0070|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0071|[Check Version NodeJS actuelle : v18.17.1 : [ OK ]
0072|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0073|+ echo 6
0074|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0075|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0076|Ign:1 http://deb.debian.org/debian buster-backports InRelease
0077|Hit:2 http://security.debian.org/debian-security buster/updates InRelease
0078|Hit:3 http://ftp.fr.debian.org/debian buster InRelease
0079|Hit:4 http://ftp.fr.debian.org/debian buster-updates InRelease
0080|Err:5 http://deb.debian.org/debian buster-backports Release
0081|404 Not Found [IP: 2a04:4e42:6a::644 80]
0082|Hit:6 https://deb.nodesource.com/node_18.x buster InRelease
0083|Reading package lists...
0084|E: The repository 'http://deb.debian.org/debian buster-backports Release' no longer has a Release file.
0085|Reading package lists...
0086|Building dependency tree...
0087|Reading state information...
0088|apt-utils is already the newest version (1.8.2.3).
0089|build-essential is already the newest version (12.6).
0090|lsb-release is already the newest version (10.2019051400).
0091|git is already the newest version (1:2.20.1-2+deb10u9).
0092|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0093|[Check Version NodeJS actuelle : v18.17.1 : [ OK ]
0094|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0095|+ echo 7
0096|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0097|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0098|Hit:1 http://security.debian.org/debian-security buster/updates InRelease
0099|Hit:2 http://ftp.fr.debian.org/debian buster InRelease
0100|Hit:3 http://ftp.fr.debian.org/debian buster-updates InRelease
0101|Ign:4 http://deb.debian.org/debian buster-backports InRelease
0102|Err:5 http://deb.debian.org/debian buster-backports Release
0103|404 Not Found [IP: 2a04:4e42:6a::644 80]
0104|Hit:6 https://deb.nodesource.com/node_18.x buster InRelease
0105|Reading package lists...
0106|E: The repository 'http://deb.debian.org/debian buster-backports Release' no longer has a Release file.
0107|Reading package lists...
0108|Building dependency tree...
0109|Reading state information...
0110|apt-utils is already the newest version (1.8.2.3).
0111|build-essential is already the newest version (12.6).
0112|lsb-release is already the newest version (10.2019051400).
0113|git is already the newest version (1:2.20.1-2+deb10u9).
0114|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0115|[Check Version NodeJS actuelle : v18.17.1 : [ OK ]
J’ai installé la 18.20 comme indiqué
la page pas accessible zwave-js-ui.
j’ai alors relancé les dépendances et :
0086|Building dependency tree...
0087|Reading state information...
0088|apt-utils is already the newest version (1.8.2.3).
0089|build-essential is already the newest version (12.6).
0090|lsb-release is already the newest version (10.2019051400).
0091|git is already the newest version (1:2.20.1-2+deb10u9).
0092|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0093|[Check Version NodeJS actuelle : v18.20.4 : [ OK ]
0094|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0095|+ echo 7
0096|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0097|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0098|Hit:1 http://ftp.fr.debian.org/debian buster InRelease
0099|Ign:2 http://deb.debian.org/debian buster-backports InRelease
0100|Hit:3 http://ftp.fr.debian.org/debian buster-updates InRelease
0101|Hit:4 http://security.debian.org/debian-security buster/updates InRelease
0102|Err:5 http://deb.debian.org/debian buster-backports Release
0103|404 Not Found [IP: 2a04:4e42:1d::644 80]
0104|Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease
0105|Reading package lists...
0106|E: The repository 'http://deb.debian.org/debian buster-backports Release' no longer has a Release file.
0107|Reading package lists...
0108|Building dependency tree...
0109|Reading state information...
0110|apt-utils is already the newest version (1.8.2.3).
0111|build-essential is already the newest version (12.6).
0112|lsb-release is already the newest version (10.2019051400).
0113|git is already the newest version (1:2.20.1-2+deb10u9).
0114|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0115|[Check Version NodeJS actuelle : v18.20.4 : [ OK ]
0116|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0117|+ echo 8
0118|+ sudo chmod +x /var/www/html/core/class/../../resources/install_composer.sh
0119|+ sudo /var/www/html/core/class/../../resources/install_composer.sh
0120|Begin installation of composer
0121|--2024-08-17 20:48:39-- https://getcomposer.org/installer
0122|Resolving getcomposer.org (getcomposer.org)... 2001:41d0:302:1100::8:104f, 54.36.53.46
0123|Connecting to getcomposer.org (getcomposer.org)|2001:41d0:302:1100::8:104f|:443... connected.
0124|HTTP request sent, awaiting response... 200 OK
0125|Length: 58444 (57K) [application/octet-stream]
0126|Saving to: 'composer-setup.php'
0127|0K .......... .......... .......... .......... .......... 87% 1.40M 0s
0128|50K ....... 100% 27.6M=0.04s
0129|2024-08-17 20:48:39 (1.59 MB/s) - 'composer-setup.php' saved [58444/58444]
0130|All settings correct for using Composer
0131|Downloading...
0132|Composer (version 2.7.7) successfully installed to: /var/www/html/core/ajax/composer.phar
0133|Use it: php composer.phar
0134|End installation of composer
0135|+ echo 9
0136|+ sudo NODE_OPTIONS=--dns-result-order=ipv4first npm install --force -g yarn
0137|npm warn using --force Recommended protections disabled.
0138|changed 1 package in 3s
0139|+ echo 10
0140|+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0141|+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0142|+ echo 'Post installation de l'\''installation/mise à jour des dépendances zwavejs'
0143|Post installation de l'installation/mise à jour des dépendances zwavejs
0144|+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0145|++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
0146|++ pwd
0147|+ BASEDIR=/var/www/html/plugins/zwavejs/resources
0148|+ cd /var/www/html/plugins/zwavejs/resources
0149|+ cd zwave-js-ui
0150|+ sudo yarn install
0151|yarn install v1.22.22
0152|info No lockfile found.
0153|warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
0154|[1/5] Validating package.json...
0155|[2/5] Resolving packages...
0156|warning archiver > archiver-utils > glob@8.1.0: Glob versions prior to v9 are no longer supported
0157|warning archiver > archiver-utils > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
0158|warning csurf@1.11.0: Please use another csrf package
0159|warning native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
0160|warning vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
0161|warning @types/extract-zip@2.0.1: This is a stub types definition. extract-zip provides its own type definitions, so you do not need this installed.
0162|warning c8 > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
0163|warning c8 > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
0164|warning c8 > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
0165|warning c8 > test-exclude > glob@7.2.3: Glob versions prior to v9 are no longer supported
0166|warning docsify-cli > docsify-server-renderer@4.13.1: docsify-server-renderer 4.x and below is no longer supported while we investigate the future of SSR and SSG for Docsify
0167|warning eslint > @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
0168|warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
0169|warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
0170|warning mocha > glob@8.1.0: Glob versions prior to v9 are no longer supported
0171|warning release-it > shelljs > glob@7.2.3: Glob versions prior to v9 are no longer supported
0172|warning vite-plugin-pwa > workbox-build > glob@7.2.3: Glob versions prior to v9 are no longer supported
0173|warning vite-plugin-pwa > workbox-build > @surma/rollup-plugin-off-main-thread > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
0174|[3/5] Fetching packages...
0175|[4/5] Linking dependencies...
0176|warning " > @zwave-js/server@1.37.0" has incorrect peer dependency "zwave-js@^13.0.0".
0177|warning " > vis-data@7.1.9" has unmet peer dependency "uuid@^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0".
0178|warning " > vis-data@7.1.9" has unmet peer dependency "vis-util@^5.0.1".
0179|warning " > vis-network@9.1.9" has unmet peer dependency "@egjs/hammerjs@^2.0.0".
0180|warning " > vis-network@9.1.9" has unmet peer dependency "component-emitter@^1.3.0".
0181|warning " > vis-network@9.1.9" has unmet peer dependency "keycharm@^0.2.0 || ^0.3.0 || ^0.4.0".
0182|warning " > vis-network@9.1.9" has unmet peer dependency "uuid@^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0".
0183|warning " > vis-network@9.1.9" has unmet peer dependency "vis-util@^5.0.1".
0184|warning " > @babel/register@7.24.6" has unmet peer dependency "@babel/core@^7.0.0-0".
0185|warning " > vite-plugin-pwa@0.16.7" has unmet peer dependency "workbox-build@^7.0.0".
0186|warning " > vite-plugin-pwa@0.16.7" has unmet peer dependency "workbox-window@^7.0.0".
0187|[5/5] Building fresh packages...
0188|success Saved lockfile.
0189|Done in 221.94s.
0190|+ sudo yarn run build
0191|yarn run v1.22.22
0192|$ npm-run-all 'build:*'
0193|$ tsc
0194|$ vite build
0195|vite v4.5.3 building for production...
0196|transforming...
0197|✓ 5 modules transformed.
0198|[vite-plugin-pwa:build] [vite]: Rollup failed to resolve import "vuetify" from "/var/www/html/plugins/zwavejs/resources/zwave-js-ui/src/plugins/vuetify.js".
0199|This is most likely unintended because it can break your application at runtime.
0200|If you do want to externalize this module explicitly add it to
0201|`build.rollupOptions.external`
0202|error during build:
0203|Error: [vite]: Rollup failed to resolve import "vuetify" from "/var/www/html/plugins/zwavejs/resources/zwave-js-ui/src/plugins/vuetify.js".
0204|This is most likely unintended because it can break your application at runtime.
0205|If you do want to externalize this module explicitly add it to
0206|`build.rollupOptions.external`
0207|at viteWarn (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:48216:27)
0208|at onRollupWarning (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:48248:9)
0209|at onwarn (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:47976:13)
0210|at file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24276:13
0211|at Object.logger [as onLog] (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25950:9)
0212|at ModuleLoader.handleInvalidResolvedId (file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24862:26)
0213|at file:///var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24822:26
0214|error Command failed with exit code 1.
0215|info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
0216|ERROR: "build:ui" exited with 1.
0217|error Command failed with exit code 1.