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

Support for NodeJS 12 #69

Closed
mdietz666 opened this issue Mar 15, 2021 · 7 comments
Closed

Support for NodeJS 12 #69

mdietz666 opened this issue Mar 15, 2021 · 7 comments

Comments

@mdietz666
Copy link

Please add support for NodeJS v12

@TA2k
Copy link
Owner

TA2k commented Mar 16, 2021

@Guenda85
Copy link

it used to work before i updated to NodeJS; i just tried a full re-install of the adapter:

$ ./iobroker url "https://github.com/TA2k/ioBroker.vw-connect"
install TA2k/ioBroker.vw-connect#4e769bd5efeb788ef062fff4127e4219ee1474a4
NPM version: 7.6.3npm install TA2k/ioBroker.vw-connect#4e769bd5efeb788ef062fff4127e4219ee1474a4 --loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! must provide realpath for Link node

npm ERR! A complete log of this run can be found in:
npm ERR! /home/iobroker/.npm/_logs/2021-03-23T06_18_21_607Z-debug.log
ERROR: host.gke-sv-web Cannot install TA2k/ioBroker.vw-connect#4e769bd5efeb788ef062fff4127e4219ee1474a4: 1
ERROR: process exited with code 25

content of logfile:
/home/iobroker/.npm/_logs$ cat 2021-03-23T06_18_21_607Z-debug.log
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli 'TA2k/ioBroker.vw-connect#4e769bd5efeb788ef062fff4127e4219ee1474a4',
0 verbose cli '--loglevel',
0 verbose cli 'error',
0 verbose cli '--prefix',
0 verbose cli '/opt/iobroker'
0 verbose cli ]
1 info using npm@7.6.3
2 info using node@v14.16.0
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 2ms
5 timing config:load:builtin Completed in 2ms
6 timing config:load:cli Completed in 2ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:/opt/iobroker/.npmrc Completed in 0ms
9 timing config:load:project Completed in 0ms
10 timing config:load:file:/home/iobroker/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/opt/iobroker/etc/npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 7ms
19 verbose npm-session 6fe1537c5ff670d5
20 timing npm:load Completed in 10ms
21 timing arborist:ctor Completed in 0ms
22 timing arborist:ctor Completed in 0ms
23 timing idealTree:init Completed in 1577ms
24 http fetch GET 200 https://codeload.github.com/TA2k/ioBroker.vw-connect/tar.gz/4e769bd5efeb788ef062fff4127e4219ee1474a4 1166ms
25 timing idealTree:userRequests Completed in 1225ms
26 silly idealTree buildDeps
27 silly fetch manifest iobroker.spotify-premium@https://github.com/twonky4/ioBroker.spotify-premium/tarball/4f992c01ecf6998948079f6d4bdab68052974ddc
28 http fetch GET 304 https://codeload.github.com/iobroker-community-adapters/ioBroker.spotify-premium/legacy.tar.gz/4f992c01ecf6998948079f6d4bdab68052974ddc 268ms (from cache)
29 silly fetch manifest iobroker.vuplus@https://github.com/vader722/ioBroker.vuplus/tarball/dcbdb2ad24c10f49a67ee6d699980650744a9b48
30 http fetch GET 304 https://codeload.github.com/vader722/ioBroker.vuplus/legacy.tar.gz/dcbdb2ad24c10f49a67ee6d699980650744a9b48 205ms (from cache)
31 silly fetch manifest iobroker.vw-carnet@https://github.com/RPerkuhn/ioBroker.vw-carnet/tarball/b5ccc4534509d212fb3237ea6f8a7a4114bef062
32 http fetch GET 304 https://codeload.github.com/RPerkuhn/ioBroker.vw-carnet/legacy.tar.gz/b5ccc4534509d212fb3237ea6f8a7a4114bef062 193ms (from cache)
33 silly fetch manifest iobroker.vw-connect@TA2k/ioBroker.vw-connect#4e769bd5efeb788ef062fff4127e4219ee1474a4
34 http fetch GET 304 https://codeload.github.com/TA2k/ioBroker.vw-connect/tar.gz/4e769bd5efeb788ef062fff4127e4219ee1474a4 168ms (from cache)
35 silly placeDep ROOT iobroker.objects-redis@ REPLACE for: iobroker.inst@1.1.2 want: file:node_modules/iobroker.objects-redis
36 timing idealTree Completed in 3758ms
37 timing command:install Completed in 3761ms
38 verbose stack TypeError: must provide realpath for Link node
38 verbose stack at new Link (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/link.js:15:13)
38 verbose stack at Arborist.[placeDep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1284:20)
38 verbose stack at /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:851:46
38 verbose stack at Array.map ()
38 verbose stack at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:851:8)
38 verbose stack at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:209:7)
38 verbose stack at async Promise.all (index 1)
38 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
38 verbose stack at async Install.install (/usr/local/lib/node_modules/npm/lib/install.js:120:5)
39 verbose cwd /opt/iobroker
40 verbose Linux 4.15.0-139-generic
41 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "TA2k/ioBroker.vw-connect#4e769bd5efeb788ef062fff4127e4219ee1474a4" "--loglevel" "error" "--prefix" "/opt/iobroker"
42 verbose node v14.16.0
43 verbose npm v7.6.3
44 error must provide realpath for Link node
45 verbose exit 1

@TA2k
Copy link
Owner

TA2k commented Mar 23, 2021

Did you try to reinstall via admin webinterface?

@Guenda85
Copy link

Guenda85 commented Mar 23, 2021 via email

@stevie77
Copy link

stevie77 commented May 5, 2021

I tried to install and reinstall (after seeing failures in log file) this VW adapter several times, last time with actual version Node.js v12.22.1, but I always get following problems with Node.js.

host.iobroker 2021-05-06 00:01:33.446 error instance system.adapter.vw-connect.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.iobroker 2021-05-06 00:01:33.446 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
host.iobroker 2021-05-06 00:01:33.446 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
host.iobroker 2021-05-06 00:01:33.446 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
host.iobroker 2021-05-06 00:01:33.446 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
host.iobroker 2021-05-06 00:01:33.445 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/canvas/lib/bindings.js:3:18)
host.iobroker 2021-05-06 00:01:33.445 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
host.iobroker 2021-05-06 00:01:33.445 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
host.iobroker 2021-05-06 00:01:33.445 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
host.iobroker 2021-05-06 00:01:33.445 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
host.iobroker 2021-05-06 00:01:33.445 error Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
host.iobroker 2021-05-06 00:01:33.444 error Caught by controller[0]: the module (for instance, using npm rebuild or npm install).
host.iobroker 2021-05-06 00:01:33.444 error Caught by controller[0]: NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
host.iobroker 2021-05-06 00:01:33.444 error Caught by controller[0]: NODE_MODULE_VERSION 64. This version of Node.js requires
host.iobroker 2021-05-06 00:01:33.444 error Caught by controller[0]: was compiled against a different Node.js version using
host.iobroker 2021-05-06 00:01:33.444 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
host.iobroker 2021-05-06 00:01:33.444 error Caught by controller[0]: ^
host.iobroker 2021-05-06 00:01:33.443 error Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename));
host.iobroker 2021-05-06 00:01:33.443 error Caught by controller[0]: internal/modules/cjs/loader.js:1057
host.iobroker 2021-05-06 00:01:31.640 info instance system.adapter.vw-connect.0 started with pid 1779
host.iobroker 2021-05-06 00:01:31.480 info iobroker npm-rebuild: exit 0
host.iobroker 2021-05-06 00:01:30.360 info iobroker npm-rebuild: Rebuild vw-connect done
host.iobroker 2021-05-06 00:01:30.358 info iobroker npm-rebuild:

It looks like the adapter was compiled against an older version of Node.js? Is there a plan to release a version with actual Node.js v12? Or is it possible, that something other is wrong with my installation attempt? I tried to install using the Admin web UI...

@TA2k
Copy link
Owner

TA2k commented May 6, 2021

cd /opt/iobroker
npm install canvas

@stevie77
Copy link

stevie77 commented May 6, 2021

That solved my problem, great. Thank you very much!

@TA2k TA2k closed this as completed Jun 17, 2021
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

No branches or pull requests

4 participants