@X13:
Приветствую.
На последних страницах вроде такой ошибки не нашёл.
Используется XP 32bit.
При попытке установить адаптер:
! 2017-02-25 10:26:20.936 - [32minfo[39m: host.asgard iobroker.js-controller version 0.15.3 js-controller starting
! 2017-02-25 10:26:20.936 - [32minfo[39m: host.asgard Copyright © 2014-2016 bluefox, hobbyquaker
! 2017-02-25 10:26:20.936 - [32minfo[39m: host.asgard hostname: asgard, node: v4.8.0
! 2017-02-25 10:26:20.952 - [32minfo[39m: host.asgard ip addresses: 192.168.102.105
! 2017-02-25 10:26:21.858 - [32minfo[39m: inMem-states listening on port 9000
! 2017-02-25 10:26:21.952 - [32minfo[39m: inMem-objects listening on port 9001
! 2017-02-25 10:26:21.968 - [32minfo[39m: host.asgard InMemoryDB connected
! 2017-02-25 10:26:21.983 - [32minfo[39m: host.asgard 1 instance found
! 2017-02-25 10:26:21.999 - [32minfo[39m: host.asgard starting 1 instance
! 2017-02-25 10:26:23.374 - [32minfo[39m: host.asgard instance system.adapter.admin.0 started with pid 2828
! 2017-02-25 10:26:31.593 - [32minfo[39m: admin.0 starting. Version 1.6.11 in D:/Program/ioBroker/node_modules/iobroker.admin, node: v4.8.0
! 2017-02-25 10:26:31.687 - [32minfo[39m: admin.0 requesting all states
! 2017-02-25 10:26:31.687 - [32minfo[39m: admin.0 requesting all objects
! 2017-02-25 10:26:31.687 - [32minfo[39m: admin.0 Request actual repository...
! 2017-02-25 10:26:31.703 - [32minfo[39m: admin.0 http server listening on port 8081
! 2017-02-25 10:26:31.703 - [32minfo[39m: admin.0 Use link "http://localhost:8081" to configure.
! 2017-02-25 10:26:32.343 - [32minfo[39m: admin.0 received all states
! 2017-02-25 10:26:32.499 - [32minfo[39m: admin.0 received all objects
! 2017-02-25 10:26:32.702 - [32minfo[39m: host.asgard Update repository "default" under "http://download.iobroker.net/sources-dist.json"
! 2017-02-25 10:26:38.140 - [32minfo[39m: admin.0 Repository received successfully.
! 2017-02-25 10:26:42.874 - [32minfo[39m: admin.0 Change log subscriber state: true
! 2017-02-25 10:26:42.874 - [32minfo[39m: admin.0 system.adapter.admin.0: logging true
! 2017-02-25 10:27:31.515 - [32minfo[39m: iobroker add fritzbox
! 2017-02-25 10:27:39.374 - [32minfo[39m: iobroker npm install iobroker.fritzbox --production --prefix "D:/Program/ioBroker" (System call)
! 2017-02-25 10:27:44.265 - [32minfo[39m: iobroker Error: Failed to replace env in config: ${APPDATA} at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:429:13
! at String.replace (native)
! at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:424:12)
! at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:400:7)
! at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:338:17
! at Array.forEach (native)
! at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:337:23)
! at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8)
! at Conf. <anonymous>(C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:325:10)
! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
! 2017-02-25 10:27:44.280 - [32minfo[39m: iobroker
! 2017-02-25 10:27:45.890 - [32minfo[39m: iobroker Error: Failed to replace env in config: ${APPDATA} at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:429:13
! at String.replace (native)
! at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:424:12)
! at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:400:7)
! at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:338:17
! at Array.forEach (native)
! at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:337:23)
! at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8)
! at Conf. <anonymous>(C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:325:10)
! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
! 2017-02-25 10:27:45.905 - [32minfo[39m: iobroker
! 2017-02-25 10:27:46.311 - [32minfo[39m: iobroker host.asgard install adapter fritzbox
! 2017-02-25 10:27:46.483 - [32minfo[39m: iobroker npm install iobroker.fritzbox --production --prefix "D:/Program/ioBroker" (System call)
! 2017-02-25 10:27:47.968 - [32minfo[39m: iobroker Error: Failed to replace env in config: ${APPDATA} at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:429:13
! at String.replace (native)
! at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:424:12)
! at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:400:7)
! at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:338:17
! at Array.forEach (native)
! at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:337:23)
! at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8)
! at Conf. <anonymous>(C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:325:10)
! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
! 2017-02-25 10:27:47.983 - [32minfo[39m: iobroker
! 2017-02-25 10:27:49.499 - [32minfo[39m: iobroker Error: Failed to replace env in config: ${APPDATA} at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:429:13
! at String.replace (native)
! at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:424:12)
! at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:400:7)
! at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:338:17
! at Array.forEach (native)
! at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:337:23)
! at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8)
! at Conf. <anonymous>(C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:325:10)
! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
! 2017-02-25 10:27:49.546 - [32minfo[39m: iobroker
! 2017-02-25 10:27:49.702 - [32minfo[39m: iobroker host.asgard install adapter fritzbox
! 2017-02-25 10:27:49.874 - [32minfo[39m: iobroker npm install iobroker.fritzbox --production --prefix "D:/Program/ioBroker" (System call)
! 2017-02-25 10:27:51.311 - [32minfo[39m: iobroker Error: Failed to replace env in config: ${APPDATA} at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:429:13
! at String.replace (native)
! at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:424:12)
! at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:400:7)
! at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:338:17
! at Array.forEach (native)
! at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:337:23)
! at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8)
! at Conf. <anonymous>(C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:325:10)
! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
! 2017-02-25 10:27:51.343 - [32minfo[39m: iobroker
! 2017-02-25 10:27:52.858 - [32minfo[39m: iobroker Error: Failed to replace env in config: ${APPDATA} at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:429:13
! at String.replace (native)
! at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:424:12)
! at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:400:7)
! at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:338:17
! at Array.forEach (native)
! at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:337:23)
! at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8)
! at Conf. <anonymous>(C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:325:10)
! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
! 2017-02-25 10:27:52.874 - [32minfo[39m: iobroker
! 2017-02-25 10:27:53.046 - [32minfo[39m: iobroker host.asgard install adapter fritzbox
! 2017-02-25 10:27:53.046 - [31merror[39m: iobroker host.asgard Cannot install fritzbox
! 2017-02-25 10:27:53.280 - [32minfo[39m: iobroker exit 13[/spoiler]</anonymous></anonymous></anonymous></anonymous></anonymous></anonymous>
Папки C:\Program Files\nodejs\node_modules\npm\lib\config\ не существует.UPD
сделал npm.cmd update
и теперь работает
И ещё, при попытке установить Ноду в любую папку кроме C:\Program Files\nodejs\ и последующей попытке установить ioBroker не находит npm. Как следствие в папке есть только файлы ioBroker.ico, unins000.dat, unins000.exe
Установщик действительно ищет npm только в Program Files/nodejs…Доступен ли npm сразу после установки в любом месте? Тогда можно поменять этот код