login as: android android@192.168.1.43's password: Debian GNU/Linux 8 (jessie) [running on Android via Linux Deploy] Last login: Sat Jan 16 18:33:11 2016 from 192.168.1.38 android@localhost:~$ cd /opt android@localhost:/opt$ ls android@localhost:/opt$ mkdir iobroker mkdir: cannot create directory 'iobroker': Permission denied android@localhost:/opt$ sudo -s root@localhost:/opt# mkdir iobroker root@localhost:/opt# chmod 777 iobroker root@localhost:/opt# cd iobroker root@localhost:/opt/iobroker# apt-get update Ign [http://ftp.debian.org](http://ftp.debian.org) jessie InRelease Hit [http://ftp.debian.org](http://ftp.debian.org) jessie Release.gpg Hit [http://ftp.debian.org](http://ftp.debian.org) jessie Release Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main armhf Packages Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib armhf Packages Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free armhf Packages Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib Translation-en Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main Translation-en Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free Translation-en Reading package lists… Done root@localhost:/opt/iobroker# apt-get install curlapt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package curlapt-get E: Unable to locate package install root@localhost:/opt/iobroker# apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libcurl3 librtmp1 libssh2-1 The following NEW packages will be installed: curl libcurl3 librtmp1 libssh2-1 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 603 kB of archives. After this operation, 1035 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main librtmp1 armhf 2.4+20150115.gita107cef-1 [55.2 kB] Get:2 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libssh2-1 armhf 1.4.3-4.1 [117 kB] Get:3 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libcurl3 armhf 7.38.0-4+deb8u2 [236 kB] Get:4 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main curl armhf 7.38.0-4+deb8u2 [196 kB] Fetched 603 kB in 2s (267 kB/s) Selecting previously unselected package librtmp1:armhf. (Reading database … 37964 files and directories currently installed.) Preparing to unpack .../librtmp1_2.4+20150115.gita107cef-1_armhf.deb ... Unpacking librtmp1:armhf (2.4+20150115.gita107cef-1) ... Selecting previously unselected package libssh2-1:armhf. Preparing to unpack .../libssh2-1_1.4.3-4.1_armhf.deb ... Unpacking libssh2-1:armhf (1.4.3-4.1) ... Selecting previously unselected package libcurl3:armhf. Preparing to unpack .../libcurl3_7.38.0-4+deb8u2_armhf.deb ... Unpacking libcurl3:armhf (7.38.0-4+deb8u2) ... Selecting previously unselected package curl. Preparing to unpack .../curl_7.38.0-4+deb8u2_armhf.deb ... Unpacking curl (7.38.0-4+deb8u2) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up librtmp1:armhf (2.4+20150115.gita107cef-1) ... Setting up libssh2-1:armhf (1.4.3-4.1) ... Setting up libcurl3:armhf (7.38.0-4+deb8u2) ... Setting up curl (7.38.0-4+deb8u2) ... Processing triggers for libc-bin (2.19-18+deb8u1) ... root@localhost:/opt/iobroker# apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: bzip2 dpkg-dev fakeroot g++ g++-4.9 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot libfile-fcntllock-perl libstdc++-4.9-dev libtimedate-perl make patch xz-utils Suggested packages: bzip2-doc debian-keyring gcc-4.9-doc libstdc++6-4.9-dbg libstdc++-4.9-doc make-doc ed diffutils-doc The following NEW packages will be installed: build-essential bzip2 dpkg-dev fakeroot g++ g++-4.9 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot libfile-fcntllock-perl libstdc++-4.9-dev libtimedate-perl make patch xz-utils 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. Need to get 16.6 MB of archives. After this operation, 37.2 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main bzip2 armhf 1.0.6-7+b3 [45.3 kB] Get:2 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main patch armhf 2.7.5-1 [101 kB] Get:3 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main xz-utils armhf 5.1.1alpha+20120614-2+b3 [218 kB] Get:4 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libstdc++-4.9-dev armhf 4.9.2-10 [1135 kB] Get:5 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main g++-4.9 armhf 4.9.2-10 [11.8 MB] Get:6 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main g++ armhf 4:4.9.2-2 [1510 B] Get:7 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main make armhf 4.0-8.1 [335 kB] Get:8 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libtimedate-perl all 2.3000-2 [42.2 kB] Get:9 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libdpkg-perl all 1.17.25 [1070 kB] Get:10 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main dpkg-dev all 1.17.25 [1544 kB] Get:11 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main build-essential armhf 11.7 [6934 B] Get:12 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libfakeroot armhf 1.20.2-1 [40.5 kB] Get:13 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main fakeroot armhf 1.20.2-1 [83.5 kB] Get:14 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libalgorithm-diff-perl all 1.19.02-3 [51.7 kB] Get:15 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libalgorithm-diff-xs-perl armhf 0.04-3+b1 [11.9 kB] Get:16 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libalgorithm-merge-perl all 0.08-2 [13.5 kB] Get:17 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main libfile-fcntllock-perl armhf 0.22-1+b1 [36.1 kB] Fetched 16.6 MB in 17s (969 kB/s) Selecting previously unselected package bzip2. (Reading database … 37992 files and directories currently installed.) Preparing to unpack .../bzip2_1.0.6-7+b3_armhf.deb ... Unpacking bzip2 (1.0.6-7+b3) ... Selecting previously unselected package patch. Preparing to unpack .../patch_2.7.5-1_armhf.deb ... Unpacking patch (2.7.5-1) ... Selecting previously unselected package xz-utils. Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2+b3_armhf.deb ... Unpacking xz-utils (5.1.1alpha+20120614-2+b3) ... Selecting previously unselected package libstdc++-4.9-dev:armhf. Preparing to unpack .../libstdc++-4.9-dev_4.9.2-10_armhf.deb ... Unpacking libstdc++-4.9-dev:armhf (4.9.2-10) ... Selecting previously unselected package g++-4.9. Preparing to unpack .../g++-4.9_4.9.2-10_armhf.deb ... Unpacking g++-4.9 (4.9.2-10) ... Selecting previously unselected package g++. Preparing to unpack .../g++_4%3a4.9.2-2_armhf.deb ... Unpacking g++ (4:4.9.2-2) ... Selecting previously unselected package make. Preparing to unpack .../make_4.0-8.1_armhf.deb ... Unpacking make (4.0-8.1) ... Selecting previously unselected package libtimedate-perl. Preparing to unpack .../libtimedate-perl_2.3000-2_all.deb ... Unpacking libtimedate-perl (2.3000-2) ... Selecting previously unselected package libdpkg-perl. Preparing to unpack .../libdpkg-perl_1.17.25_all.deb ... Unpacking libdpkg-perl (1.17.25) ... Selecting previously unselected package dpkg-dev. Preparing to unpack .../dpkg-dev_1.17.25_all.deb ... Unpacking dpkg-dev (1.17.25) ... Selecting previously unselected package build-essential. Preparing to unpack .../build-essential_11.7_armhf.deb ... Unpacking build-essential (11.7) ... Selecting previously unselected package libfakeroot:armhf. Preparing to unpack .../libfakeroot_1.20.2-1_armhf.deb ... Unpacking libfakeroot:armhf (1.20.2-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.20.2-1_armhf.deb ... Unpacking fakeroot (1.20.2-1) ... Selecting previously unselected package libalgorithm-diff-perl. Preparing to unpack .../libalgorithm-diff-perl_1.19.02-3_all.deb ... Unpacking libalgorithm-diff-perl (1.19.02-3) ... Selecting previously unselected package libalgorithm-diff-xs-perl. Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-3+b1_armhf.deb ... Unpacking libalgorithm-diff-xs-perl (0.04-3+b1) ... Selecting previously unselected package libalgorithm-merge-perl. Preparing to unpack .../libalgorithm-merge-perl_0.08-2_all.deb ... Unpacking libalgorithm-merge-perl (0.08-2) ... Selecting previously unselected package libfile-fcntllock-perl. Preparing to unpack .../libfile-fcntllock-perl_0.22-1+b1_armhf.deb ... Unpacking libfile-fcntllock-perl (0.22-1+b1) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up bzip2 (1.0.6-7+b3) ... Setting up patch (2.7.5-1) ... Setting up xz-utils (5.1.1alpha+20120614-2+b3) ... update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode Setting up libstdc++-4.9-dev:armhf (4.9.2-10) ... Setting up g++-4.9 (4.9.2-10) ... Setting up g++ (4:4.9.2-2) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Setting up make (4.0-8.1) ... Setting up libtimedate-perl (2.3000-2) ... Setting up libdpkg-perl (1.17.25) ... Setting up dpkg-dev (1.17.25) ... Setting up build-essential (11.7) ... Setting up libfakeroot:armhf (1.20.2-1) ... Setting up fakeroot (1.20.2-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Setting up libalgorithm-diff-perl (1.19.02-3) ... Setting up libalgorithm-diff-xs-perl (0.04-3+b1) ... Setting up libalgorithm-merge-perl (0.08-2) ... Setting up libfile-fcntllock-perl (0.22-1+b1) ... root@localhost:/opt/iobroker# curl -sL [https://deb.nodesource.com/setup](https://deb.nodesource.com/setup) | bash - ## Installing the NodeSource Node.js 0.10 repo... ## Populating apt-get cache... + apt-get update Ign [http://ftp.debian.org](http://ftp.debian.org) jessie InRelease Hit [http://ftp.debian.org](http://ftp.debian.org) jessie Release.gpg Hit [http://ftp.debian.org](http://ftp.debian.org) jessie Release Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main armhf Packages Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib armhf Packages Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free armhf Packages Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib Translation-en Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main Translation-en Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free Translation-en Reading package lists... Done ## Installing packages required for setup: apt-transport-https... + apt-get install -y apt-transport-https > /dev/null 2>&1 ## Confirming "jessie" is supported... + curl -sLf -o /dev/null '[https://deb.nodesource.com/node_0.10/di ... ie/Release](https://deb.nodesource.com/node_0.10/dists/jessie/Release)' ## Adding the NodeSource signing key to your keyring... + curl -s [https://deb.nodesource.com/gpgkey/nodesource.gpg.key](https://deb.nodesource.com/gpgkey/nodesource.gpg.key) | apt-key add - OK ## Creating apt sources list file for the NodeSource Node.js 0.10 repo... + echo 'deb [https://deb.nodesource.com/node_0.10](https://deb.nodesource.com/node_0.10) jessie main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [https://deb.nodesource.com/node_0.10](https://deb.nodesource.com/node_0.10) jessie main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Ign [http://ftp.debian.org](http://ftp.debian.org) jessie InRelease Hit [http://ftp.debian.org](http://ftp.debian.org) jessie Release.gpg Hit [http://ftp.debian.org](http://ftp.debian.org) jessie Release Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free Sources Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main armhf Packages Get:1 [https://deb.nodesource.com](https://deb.nodesource.com) jessie InRelease [3899 B] Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib armhf Packages Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free armhf Packages Get:2 [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main Sources [675 B] Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/contrib Translation-en Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/main Translation-en Get:3 [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main armhf Packages [935 B] Hit [http://ftp.debian.org](http://ftp.debian.org) jessie/non-free Translation-en Get:4 [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main Translation-en [162 B] Get:5 [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main Translation-en [162 B] Get:6 [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main Translation-en [162 B] Get:7 [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main Translation-en [162 B] Get:8 [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main Translation-en [162 B] Ign [https://deb.nodesource.com](https://deb.nodesource.com) jessie/main Translation-en Fetched 5509 B in 15s (366 B/s) Reading package lists… Done ## Run `apt-get install nodejs` (as root) to install Node.js 0.10 and npm root@localhost:/opt/iobroker# apt-get install nodejs Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: rlwrap The following NEW packages will be installed: nodejs rlwrap 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 4146 kB of archives. After this operation, 19.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 [http://ftp.debian.org/debian/](http://ftp.debian.org/debian/) jessie/main rlwrap armhf 0.41-1 [71.3 kB] Get:2 [https://deb.nodesource.com/node_0.10/](https://deb.nodesource.com/node_0.10/) jessie/main nodejs armhf 0.10.41-1nodesource1~jessie1 [4075 kB] Fetched 4146 kB in 11s (371 kB/s) Selecting previously unselected package rlwrap. (Reading database … 39454 files and directories currently installed.) Preparing to unpack .../rlwrap_0.41-1_armhf.deb ... Unpacking rlwrap (0.41-1) ... Selecting previously unselected package nodejs. Preparing to unpack .../nodejs_0.10.41-1nodesource1~jessie1_armhf.deb ... Unpacking nodejs (0.10.41-1nodesource1~jessie1) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up rlwrap (0.41-1) ... update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode Setting up nodejs (0.10.41-1nodesource1~jessie1) ... root@localhost:/opt/iobroker# npm install iobroker npm WARN deprecated This version of npm lacks support for important features, npm WARN deprecated such as scoped packages, offered by the primary npm npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the npm WARN deprecated latest stable version. To upgrade to npm@2, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest-2 npm WARN deprecated npm WARN deprecated To upgrade to the latest stable version, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest npm WARN deprecated npm WARN deprecated (Depending on how Node.js was installed on your system, you npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if npm WARN deprecated on Windows, run them from an Administrator prompt.) npm WARN deprecated npm WARN deprecated If you're running the version of npm bundled with npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS npm WARN deprecated will be bundled with a version of npm@2, which has some small npm WARN deprecated backwards-incompatible changes made to `npm run-script` and npm WARN deprecated semver behavior. / > iobroker@0.5.6 install /opt/iobroker/node_modules/iobroker > node lib/setup.js npm install iobroker.js-controller --production --prefix /opt/iobroker npm WARN deprecated This version of npm lacks support for important features, npm WARN deprecated such as scoped packages, offered by the primary npm npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the npm WARN deprecated latest stable version. To upgrade to npm@2, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest-2 npm WARN deprecated npm WARN deprecated To upgrade to the latest stable version, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest npm WARN deprecated npm WARN deprecated (Depending on how Node.js was installed on your system, you npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if npm WARN deprecated on Windows, run them from an Administrator prompt.) npm WARN deprecated npm WARN deprecated If you're running the version of npm bundled with npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS npm WARN deprecated will be bundled with a version of npm@2, which has some small npm WARN deprecated backwards-incompatible changes made to `npm run-script` and npm WARN deprecated semver behavior. npm ERR! Error: Attempt to unlock iobroker.js-controller, which hasn't been locked npm ERR! at unlock (/usr/lib/node_modules/npm/lib/utils/locker.js:44:11) npm ERR! at cb (/usr/lib/node_modules/npm/lib/cache/add-local.js:30:5) npm ERR! at /usr/lib/node_modules/npm/lib/cache/add-local.js:47:20 npm ERR! at /usr/lib/node_modules/npm/lib/utils/locker.js:22:20 npm ERR! at /usr/lib/node_modules/npm/node_modules/inflight/inflight.js:22:7 npm ERR! at Array.forEach (native) npm ERR! at res (/usr/lib/node_modules/npm/node_modules/inflight/inflight.js:21:9) npm ERR! at f (/usr/lib/node_modules/npm/node_modules/once/once.js:16:25) npm ERR! at afterMkdir (/usr/lib/node_modules/npm/lib/cache/get-stat.js:53:14) npm ERR! at /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53 npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <[http://github.com/npm/npm/issues](http://github.com/npm/npm/issues)> npm ERR! System Linux 3.0.8+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller" "--production" "--prefix" "/opt/iobroker" npm ERR! cwd /opt/iobroker/node_modules/iobroker npm ERR! node -v v0.10.41 npm ERR! npm -v 1.4.29 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/iobroker/node_modules/iobroker/npm-debug.log npm ERR! not ok code 0 Cannot install as normal user. Try sudo... sudo npm install iobroker.js-controller --production --prefix /opt/iobroker npm WARN deprecated This version of npm lacks support for important features, npm WARN deprecated such as scoped packages, offered by the primary npm npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the npm WARN deprecated latest stable version. To upgrade to npm@2, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest-2 npm WARN deprecated npm WARN deprecated To upgrade to the latest stable version, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest npm WARN deprecated npm WARN deprecated (Depending on how Node.js was installed on your system, you npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if npm WARN deprecated on Windows, run them from an Administrator prompt.) npm WARN deprecated npm WARN deprecated If you're running the version of npm bundled with npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS npm WARN deprecated will be bundled with a version of npm@2, which has some small npm WARN deprecated backwards-incompatible changes made to `npm run-script` and npm WARN deprecated semver behavior. npm -g install npm@latest npm -g install npm@latest events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EACCES at errnoException (net.js:905:11) at Server._listen2 (net.js:1024:19) at listen (net.js:1065:10) at Server.listen (net.js:1139:5) at _initWebServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2559:24) at /opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:146:9 at new ObjectsInMemServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:153:7) at null._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2213:27) at Timer.listOnTimeout [as ontimeout] (timers.js:121:15) npm ERR! iobroker.js-controller@0.8.2 install: `node lib/setup.js setup first` npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the iobroker.js-controller@0.8.2 install script. npm ERR! This is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/setup.js setup first npm ERR! You can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.0.8+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller" "–production" "--prefix" "/opt/iobroker" npm ERR! cwd /opt/iobroker/node_modules/iobroker npm ERR! node -v v0.10.41 npm ERR! npm -v 1.4.29 npm ERR! code ELIFECYCLE npm ERR! not ok code 0 npm install iobroker.admin --production --prefix /opt/iobroker npm WARN deprecated This version of npm lacks support for important features, npm WARN deprecated such as scoped packages, offered by the primary npm npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the npm WARN deprecated latest stable version. To upgrade to npm@2, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest-2 npm WARN deprecated npm WARN deprecated To upgrade to the latest stable version, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest npm WARN deprecated npm WARN deprecated (Depending on how Node.js was installed on your system, you npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if npm WARN deprecated on Windows, run them from an Administrator prompt.) npm WARN deprecated npm WARN deprecated If you're running the version of npm bundled with npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS npm WARN deprecated will be bundled with a version of npm@2, which has some small npm WARN deprecated backwards-incompatible changes made to `npm run-script` and npm WARN deprecated semver behavior. npm ERR! Error: Attempt to unlock iobroker.admin, which hasn't been locked npm ERR! at unlock (/usr/lib/node_modules/npm/lib/utils/locker.js:44:11) npm ERR! at cb (/usr/lib/node_modules/npm/lib/cache/add-local.js:30:5) npm ERR! at /usr/lib/node_modules/npm/lib/cache/add-local.js:47:20 npm ERR! at /usr/lib/node_modules/npm/lib/utils/locker.js:22:20 npm ERR! at /usr/lib/node_modules/npm/node_modules/inflight/inflight.js:22:7 npm ERR! at Array.forEach (native) npm ERR! at res (/usr/lib/node_modules/npm/node_modules/inflight/inflight.js:21:9) npm ERR! at f (/usr/lib/node_modules/npm/node_modules/once/once.js:16:25) npm ERR! at afterMkdir (/usr/lib/node_modules/npm/lib/cache/get-stat.js:53:14) npm ERR! at /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53 npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <[http://github.com/npm/npm/issues](http://github.com/npm/npm/issues)> npm ERR! System Linux 3.0.8+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.admin" "--production" "--prefix" "/opt/iobroker" npm ERR! cwd /opt/iobroker/node_modules/iobroker npm ERR! node -v v0.10.41 npm ERR! npm -v 1.4.29 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/iobroker/node_modules/iobroker/npm-debug.log npm ERR! not ok code 0 Cannot install as normal user. Try sudo... sudo npm install iobroker.admin --production --prefix /opt/iobroker npm WARN deprecated This version of npm lacks support for important features, npm WARN deprecated such as scoped packages, offered by the primary npm npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the npm WARN deprecated latest stable version. To upgrade to npm@2, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest-2 npm WARN deprecated npm WARN deprecated To upgrade to the latest stable version, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest npm WARN deprecated npm WARN deprecated (Depending on how Node.js was installed on your system, you npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if npm WARN deprecated on Windows, run them from an Administrator prompt.) npm WARN deprecated npm WARN deprecated If you're running the version of npm bundled with npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS npm WARN deprecated will be bundled with a version of npm@2, which has some small npm WARN deprecated backwards-incompatible changes made to `npm run-script` and npm WARN deprecated semver behavior. Write "./iobroker start" to start the ioBroker Cannot set permissions of /opt/iobroker/node_modules/iobroker.js-controller/iobroker You can still manually copy Cannot create file /usr/bin/iobroker!. Non critical ----------------------------------------------------- You can manually copy file into /usr/bin/. Just write: sudo cp /opt/iobroker/node_modules/iobroker/install/iobroker /usr/bin/ sudo chmod 777 /usr/bin/iobroker ----------------------------------------------------- Cannot copy file to /etc/init.d/iobroker.sh: Error: EACCES, open '/etc/init.d/iobroker.sh' ----------------------------------------------------- You can manually copy file and install autostart: sudo cp /opt/iobroker/node_modules/iobroker/install/linux/iobroker.sh /etc/init.d/ sudo chmod 777 /etc/init.d/iobroker.sh sudo bash /opt/iobroker/node_modules/iobroker/install/linux/install.sh ----------------------------------------------------- or just start "sudo bash /opt/iobroker/install.sh" ----------------------------------------------------- iobroker@0.5.6 node_modules/iobroker └── yargs@1.2.6 (minimist@0.1.0) root@localhost:/opt/iobroker# npm -g install npm@latest npm WARN deprecated This version of npm lacks support for important features, npm WARN deprecated such as scoped packages, offered by the primary npm npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the npm WARN deprecated latest stable version. To upgrade to npm@2, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest-2 npm WARN deprecated npm WARN deprecated To upgrade to the latest stable version, run: npm WARN deprecated npm WARN deprecated npm -g install npm@latest npm WARN deprecated npm WARN deprecated (Depending on how Node.js was installed on your system, you npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if npm WARN deprecated on Windows, run them from an Administrator prompt.) npm WARN deprecated npm WARN deprecated If you're running the version of npm bundled with npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS npm WARN deprecated will be bundled with a version of npm@2, which has some small npm WARN deprecated backwards-incompatible changes made to `npm run-script` and npm WARN deprecated semver behavior. /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js npm@3.5.3 /usr/lib/node_modules/npm root@localhost:/opt/iobroker# npm -g install npm@latest /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js /usr/lib `-- npm@3.5.3 root@localhost:/opt/iobroker# ls install.sh iobroker iobroker-data log node_modules root@localhost:/opt/iobroker# cd .. root@localhost:/opt# mv iobroker iobr1 root@localhost:/opt# ls iobr1 root@localhost:/opt# make dir iobroker make: *** No rule to make target 'dir'. Stop. root@localhost:/opt# mkdir iobroker root@localhost:/opt# chmod 777 iobroker root@localhost:/opt# cd iobroker root@localhost:/opt/iobroker# npm install iobroker npm WARN lifecycle iobroker@0.5.6~install: cannot run in wd %s %s (wd=%s) iobroker@0.5.6 node lib/setup.js /opt/iobroker/node_modules/iobroker /opt/iobroker `-- iobroker@0.5.6 `-- yargs@1.2.6 `-- minimist@0.1.0 npm WARN enoent ENOENT, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. root@localhost:/opt/iobroker# node -v v0.10.41 root@localhost:/opt/iobroker# cd .. root@localhost:/opt# mv iobroker null root@localhost:/opt# ls iobr1 null root@localhost:/opt# mv iobroker ->null bash: null: Is a directory root@localhost:/opt# mv iobr1 iobroker root@localhost:/opt# ls iobroker null root@localhost:/opt# cd iobroker root@localhost:/opt/iobroker# ls install.sh iobroker iobroker-data log node_modules root@localhost:/opt/iobroker# sudo cp /opt/iobroker/node_modules/iobroker/install/linux/iobroker.sh /etc/init.d/ root@localhost:/opt/iobroker# root@localhost:/opt/iobroker# sudo chmod 777 /etc/init.d/iobroker.sh root@localhost:/opt/iobroker# sudo bash /opt/iobroker/node_modules/iobroker/install/linux/install.sh Use user root for install. Set permissions... Start iobroker... /opt/iobroker/node_modules/iobroker/install/linux/install.sh: line 65: cd: /opt/iobroker/node_modules/iobroker.js-controller/: No such file or directory module.js:340 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:935:3 call http://ip_address:8081/ in browser to get the AdminUI of ioBroker root@localhost:/opt/iobroker# npm install iobroker.js-controller > iobroker.js-controller@0.8.2 install /opt/iobroker/node_modules/iobroker.js-controller > node lib/setup.js setup first /opt/iobroker +-- iobroker.admin@0.7.2 | +-- body-parser@1.14.2 | | +-- debug@2.2.0 | | | `-- ms@0.7.1 | | +-- http-errors@1.3.1 | | | `-- inherits@2.0.1 | | +-- qs@5.2.0 | | `-- type-is@1.6.10 | | `-- mime-types@2.1.9 | | `-- mime-db@1.21.0 | +-- express@4.13.3 | | +-- accepts@1.2.13 | | | `-- mime-types@2.1.9 | | | `-- mime-db@1.21.0 | | +-- debug@2.2.0 | | | `-- ms@0.7.1 | | +-- send@0.13.0 | | | +-- http-errors@1.3.1 | | | | `-- inherits@2.0.1 | | | +-- mime@1.3.4 | | | `-- ms@0.7.1 | | +-- serve-static@1.10.1 | | | `-- send@0.13.1 | | | +-- http-errors@1.3.1 | | | | `-- inherits@2.0.1 | | | +-- mime@1.3.4 | | | `-- ms@0.7.1 | | `-- type-is@1.6.10 | | `-- mime-types@2.1.9 | | `-- mime-db@1.21.0 | +-- express-session@1.13.0 | | `-- debug@2.2.0 | | `-- ms@0.7.1 | +-- request@2.67.0 | | +-- aws-sign2@0.6.0 | | +-- bl@1.0.0 | | | `-- readable-stream@2.0.5 | | | +-- core-util-is@1.0.2 | | | +-- inherits@2.0.1 | | | +-- isarray@0.0.1 | | | +-- process-nextick-args@1.0.6 | | | +-- string_decoder@0.10.31 | | | `-- util-deprecate@1.0.2 | | +-- caseless@0.11.0 | | +-- combined-stream@1.0.5 | | | `-- delayed-stream@1.0.0 | | +-- extend@3.0.0 | | +-- forever-agent@0.6.1 | | +-- form-data@1.0.0-rc3 | | | `-- async@1.5.2 | | +-- har-validator@2.0.5 | | | +-- chalk@1.1.1 | | | | +-- ansi-styles@2.1.0 | | | | +-- escape-string-regexp@1.0.4 | | | | +-- has-ansi@2.0.0 | | | | | `-- ansi-regex@2.0.0 | | | | +-- strip-ansi@3.0.0 | | | | | `-- ansi-regex@2.0.0 | | | | `-- supports-color@2.0.0 | | | +-- commander@2.9.0 | | | | `-- graceful-readlink@1.0.1 | | | +-- is-my-json-valid@2.12.4 | | | | +-- generate-function@2.0.0 | | | | +-- generate-object-property@1.2.0 | | | | | `-- is-property@1.0.2 | | | | `-- jsonpointer@2.0.0 | | | `-- pinkie-promise@2.0.0 | | | `-- pinkie@2.0.1 | | +-- hawk@3.1.2 | | | +-- boom@2.10.1 | | | +-- cryptiles@2.0.5 | | | +-- hoek@2.16.3 | | | `-- sntp@1.0.9 | | +-- http-signature@1.1.0 | | | +-- assert-plus@0.1.5 | | | +-- jsprim@1.2.2 | | | | +-- extsprintf@1.0.2 | | | | +-- json-schema@0.2.2 | | | | `-- verror@1.3.6 | | | `-- sshpk@1.7.3 | | | +-- asn1@0.2.3 | | | +-- assert-plus@0.2.0 | | | +-- dashdash@1.12.1 | | | | `-- assert-plus@0.1.5 | | | +-- ecc-jsbn@0.1.1 | | | +-- jodid25519@1.0.2 | | | +-- jsbn@0.1.0 | | | `-- tweetnacl@0.13.3 | | +-- is-typedarray@1.0.0 | | +-- isstream@0.1.2 | | +-- json-stringify-safe@5.0.1 | | +-- mime-types@2.1.9 | | | `-- mime-db@1.21.0 | | +-- node-uuid@1.4.7 | | +-- oauth-sign@0.8.0 | | +-- qs@5.2.0 | | +-- stringstream@0.0.5 | | +-- tough-cookie@2.2.1 | | `-- tunnel-agent@0.4.2 | +-- socket.io@1.4.4 | | +-- debug@2.2.0 | | | `-- ms@0.7.1 | | +-- engine.io@1.6.7 | | | +-- accepts@1.1.4 | | | | +-- mime-types@2.0.14 | | | | | `-- mime-db@1.12.0 | | | | `-- negotiator@0.4.9 | | | +-- base64id@0.1.0 | | | +-- engine.io-parser@1.2.4 | | | | +-- after@0.8.1 | | | | +-- arraybuffer.slice@0.0.6 | | | | +-- base64-arraybuffer@0.1.2 | | | | +-- blob@0.0.4 | | | | +-- has-binary@0.1.6 | | | | | `-- isarray@0.0.1 | | | | `-- utf8@2.1.0 | | | `-- ws@1.0.1 | | | +-- options@0.0.6 | | | `-- ultron@1.0.2 | | +-- has-binary@0.1.7 | | | `-- isarray@0.0.1 | | +-- socket.io-adapter@0.4.0 | | | `-- socket.io-parser@2.2.2 | | | +-- benchmark@1.0.0 | | | +-- component-emitter@1.1.2 | | | +-- debug@0.7.4 | | | +-- isarray@0.0.1 | | | `-- json3@3.2.6 | | +-- socket.io-client@1.4.4 | | | +-- backo2@1.0.2 | | | +-- component-bind@1.0.0 | | | +-- component-emitter@1.2.0 | | | +-- engine.io-client@1.6.7 | | | | +-- component-emitter@1.1.2 | | | | +-- component-inherit@0.0.3 | | | | +-- engine.io-parser@1.2.4 | | | | | +-- after@0.8.1 | | | | | +-- arraybuffer.slice@0.0.6 | | | | | +-- base64-arraybuffer@0.1.2 | | | | | +-- blob@0.0.4 | | | | | +-- has-binary@0.1.6 | | | | | | `-- isarray@0.0.1 | | | | | `-- utf8@2.1.0 | | | | +-- has-cors@1.1.0 | | | | +-- parsejson@0.0.1 | | | | | `-- better-assert@1.0.2 | | | | | `-- callsite@1.0.0 | | | | +-- parseqs@0.0.2 | | | | | `-- better-assert@1.0.2 | | | | | `-- callsite@1.0.0 | | | | +-- ws@1.0.1 | | | | | +-- options@0.0.6 | | | | | `-- ultron@1.0.2 | | | | +-- xmlhttprequest-ssl@1.5.1 | | | | `-- yeast@0.1.2 | | | +-- indexof@0.0.1 | | | +-- object-component@0.0.3 | | | +-- parseuri@0.0.4 | | | | `-- better-assert@1.0.2 | | | | `-- callsite@1.0.0 | | | +-- socket.io-parser@2.2.5 | | | | +-- benchmark@1.0.0 | | | | +-- component-emitter@1.1.2 | | | | +-- isarray@0.0.1 | | | | `-- json3@3.3.2 | | | `-- to-array@0.1.3 | | `-- socket.io-parser@2.2.6 | | +-- benchmark@1.0.0 | | +-- component-emitter@1.1.2 | | +-- isarray@0.0.1 | | `-- json3@3.3.2 | `-- xtend@4.0.1 `-- iobroker.js-controller@0.8.2 +-- adm-zip@0.4.7 +-- daemonize2@0.4.2 +-- mime@1.3.4 +-- ncp@2.0.0 +-- node-schedule@0.2.9 | +-- cron-parser@0.6.2 | `-- long-timeout@0.0.2 +-- node.extend@1.1.5 | `-- is@3.1.0 +-- npm@2.14.15 | +-- abbrev@1.0.7 | +-- ansi@0.3.0 | +-- ansi-regex@2.0.0 | +-- ansicolors@0.3.2 | +-- ansistyles@0.1.3 | +-- archy@1.0.0 | +-- async-some@1.0.2 | +-- block-stream@0.0.8 | +-- char-spinner@1.0.1 | +-- chmodr@1.0.2 | +-- chownr@1.0.1 | +-- cmd-shim@2.0.1 | | `-- graceful-fs@3.0.8 | +-- columnify@1.5.2 | | `-- wcwidth@1.0.0 | | `-- defaults@1.0.2 | | `-- clone@0.1.19 | +-- config-chain@1.1.9 | | `-- proto-list@1.2.4 | +-- dezalgo@1.0.3 | | `-- asap@2.0.3 | +-- editor@1.0.0 | +-- fs-vacuum@1.2.7 | +-- fs-write-stream-atomic@1.0.5 | +-- fstream@1.0.8 | +-- fstream-npm@1.0.7 | | `-- fstream-ignore@1.0.3 | +-- github-url-from-git@1.4.0 | +-- github-url-from-username-repo@1.0.2 | +-- glob@5.0.15 | | `-- path-is-absolute@1.0.0 | +-- graceful-fs@4.1.2 | +-- hosted-git-info@2.1.4 | +-- imurmurhash@0.1.4 | +-- inflight@1.0.4 | +-- inherits@2.0.1 | +-- ini@1.3.4 | +-- init-package-json@1.9.1 | | `-- promzard@0.3.0 | +-- lockfile@1.0.1 | +-- lru-cache@3.2.0 | | `-- pseudomap@1.0.1 | +-- minimatch@3.0.0 | | `-- brace-expansion@1.1.1 | | +-- balanced-match@0.2.1 | | `-- concat-map@0.0.1 | +-- mkdirp@0.5.1 | | `-- minimist@0.0.8 | +-- node-gyp@3.2.1 | | +-- glob@4.5.3 | | | `-- minimatch@2.0.10 | | | `-- brace-expansion@1.1.2 | | | +-- balanced-match@0.3.0 | | | `-- concat-map@0.0.1 | | +-- minimatch@1.0.0 | | | +-- lru-cache@2.7.3 | | | `-- sigmund@1.0.1 | | +-- npmlog@1.2.1 | | | +-- are-we-there-yet@1.0.5 | | | | `-- delegates@0.1.0 | | | `-- gauge@1.2.2 | | | +-- has-unicode@1.0.1 | | | +-- lodash.pad@3.1.1 | | | | +-- lodash._basetostring@3.0.1 | | | | `-- lodash._createpadding@3.6.1 | | | | `-- lodash.repeat@3.0.1 | | | +-- lodash.padleft@3.1.1 | | | | +-- lodash._basetostring@3.0.1 | | | | `-- lodash._createpadding@3.6.1 | | | | `-- lodash.repeat@3.0.1 | | | `-- lodash.padright@3.1.1 | | | +-- lodash._basetostring@3.0.1 | | | `-- lodash._createpadding@3.6.1 | | | `-- lodash.repeat@3.0.1 | | `-- path-array@1.0.0 | | `-- array-index@0.1.1 | | `-- debug@2.2.0 | | `-- ms@0.7.1 | +-- nopt@3.0.6 | +-- normalize-git-url@3.0.1 | +-- normalize-package-data@2.3.5 | | `-- is-builtin-module@1.0.0 | | `-- builtin-modules@1.1.0 | +-- npm-cache-filename@1.0.2 | +-- npm-install-checks@1.0.6 | | `-- npmlog@1.2.1 | | +-- are-we-there-yet@1.0.4 | | | `-- delegates@0.1.0 | | `-- gauge@1.2.2 | | +-- has-unicode@1.0.1 | | +-- lodash.pad@3.1.1 | | | +-- lodash._basetostring@3.0.1 | | | `-- lodash._createpadding@3.6.1 | | | `-- lodash.repeat@3.0.1 | | +-- lodash.padleft@3.1.1 | | | +-- lodash._basetostring@3.0.1 | | | `-- lodash._createpadding@3.6.1 | | | `-- lodash.repeat@3.0.1 | | `-- lodash.padright@3.1.1 | | +-- lodash._basetostring@3.0.1 | | `-- lodash._createpadding@3.6.1 | | `-- lodash.repeat@3.0.1 | +-- npm-package-arg@4.1.0 | +-- npm-registry-client@7.0.9 | | `-- concat-stream@1.5.1 | | +-- readable-stream@2.0.4 | | | +-- core-util-is@1.0.2 | | | +-- isarray@0.0.1 | | | +-- process-nextick-args@1.0.6 | | | +-- string_decoder@0.10.31 | | | `-- util-deprecate@1.0.2 | | `-- typedarray@0.0.6 | +-- npm-user-validate@0.1.2 | +-- npmlog@2.0.0 | | +-- are-we-there-yet@1.0.4 | | | `-- delegates@0.1.0 | | `-- gauge@1.2.2 | | +-- has-unicode@1.0.1 | | +-- lodash.pad@3.1.1 | | | +-- lodash._basetostring@3.0.1 | | | `-- lodash._createpadding@3.6.1 | | | `-- lodash.repeat@3.0.1 | | +-- lodash.padleft@3.1.1 | | | +-- lodash._basetostring@3.0.1 | | | `-- lodash._createpadding@3.6.1 | | | `-- lodash.repeat@3.0.1 | | `-- lodash.padright@3.1.1 | | +-- lodash._basetostring@3.0.1 | | `-- lodash._createpadding@3.6.1 | | `-- lodash.repeat@3.0.1 | +-- once@1.3.3 | +-- opener@1.4.1 | +-- osenv@0.1.3 | | +-- os-homedir@1.0.0 | | `-- os-tmpdir@1.0.1 | +-- path-is-inside@1.0.1 | +-- read@1.0.7 | | `-- mute-stream@0.0.5 | +-- read-installed@4.0.3 | | +-- debuglog@1.0.1 | | +-- readdir-scoped-modules@1.0.2 | | `-- util-extend@1.0.1 | +-- read-package-json@2.0.2 | | `-- json-parse-helpfulerror@1.0.3 | | `-- jju@1.2.1 | +-- readable-stream@1.1.13 | | +-- core-util-is@1.0.1 | | +-- isarray@0.0.1 | | `-- string_decoder@0.10.31 | +-- realize-package-specifier@3.0.1 | +-- request@2.67.0 | | +-- aws-sign2@0.6.0 | | +-- bl@1.0.0 | | | `-- readable-stream@2.0.4 | | | +-- core-util-is@1.0.2 | | | +-- isarray@0.0.1 | | | +-- process-nextick-args@1.0.6 | | | +-- string_decoder@0.10.31 | | | `-- util-deprecate@1.0.2 | | +-- caseless@0.11.0 | | +-- combined-stream@1.0.5 | | | `-- delayed-stream@1.0.0 | | +-- extend@3.0.0 | | +-- forever-agent@0.6.1 | | +-- form-data@1.0.0-rc3 | | | `-- async@1.5.0 | | +-- har-validator@2.0.3 | | | +-- chalk@1.1.1 | | | | +-- ansi-styles@2.1.0 | | | | +-- escape-string-regexp@1.0.3 | | | | +-- has-ansi@2.0.0 | | | | `-- supports-color@2.0.0 | | | +-- commander@2.9.0 | | | | `-- graceful-readlink@1.0.1 | | | +-- is-my-json-valid@2.12.3 | | | | +-- generate-function@2.0.0 | | | | +-- generate-object-property@1.2.0 | | | | | `-- is-property@1.0.2 | | | | +-- jsonpointer@2.0.0 | | | | `-- xtend@4.0.1 | | | `-- pinkie-promise@2.0.0 | | | `-- pinkie@2.0.1 | | +-- hawk@3.1.2 | | | +-- boom@2.10.1 | | | +-- cryptiles@2.0.5 | | | +-- hoek@2.16.3 | | | `-- sntp@1.0.9 | | +-- http-signature@1.1.0 | | | +-- assert-plus@0.1.5 | | | +-- jsprim@1.2.2 | | | | +-- extsprintf@1.0.2 | | | | +-- json-schema@0.2.2 | | | | `-- verror@1.3.6 | | | `-- sshpk@1.7.1 | | | +-- asn1@0.2.3 | | | +-- assert-plus@0.2.0 | | | +-- dashdash@1.10.1 | | | | `-- assert-plus@0.1.5 | | | +-- ecc-jsbn@0.1.1 | | | +-- jodid25519@1.0.2 | | | +-- jsbn@0.1.0 | | | `-- tweetnacl@0.13.2 | | +-- is-typedarray@1.0.0 | | +-- isstream@0.1.2 | | +-- json-stringify-safe@5.0.1 | | +-- mime-types@2.1.8 | | | `-- mime-db@1.20.0 | | +-- node-uuid@1.4.7 | | +-- oauth-sign@0.8.0 | | +-- qs@5.2.0 | | +-- stringstream@0.0.5 | | +-- tough-cookie@2.2.1 | | `-- tunnel-agent@0.4.2 | +-- retry@0.8.0 | +-- rimraf@2.4.4 | +-- semver@5.1.0 | +-- sha@2.0.1 | | `-- readable-stream@2.0.2 | | +-- core-util-is@1.0.1 | | +-- isarray@0.0.1 | | +-- process-nextick-args@1.0.3 | | +-- string_decoder@0.10.31 | | `-- util-deprecate@1.0.1 | +-- slide@1.1.6 | +-- sorted-object@1.0.0 | +-- spdx-license-ids@1.1.0 | +-- strip-ansi@3.0.0 | +-- tar@2.2.1 | +-- text-table@0.2.0 | +-- uid-number@0.0.6 | +-- umask@1.1.0 | +-- validate-npm-package-license@3.0.1 | | +-- spdx-correct@1.0.2 | | `-- spdx-expression-parse@1.0.2 | | `-- spdx-exceptions@1.0.4 | +-- validate-npm-package-name@2.2.2 | | `-- builtins@0.0.7 | +-- which@1.2.0 | | `-- is-absolute@0.1.7 | | `-- is-relative@0.1.3 | +-- wrappy@1.0.1 | `-- write-file-atomic@1.1.4 +-- prompt@0.2.14 | +-- pkginfo@0.3.1 | +-- read@1.0.7 | | `-- mute-stream@0.0.5 | +-- revalidator@0.1.8 | +-- utile@0.2.1 | | +-- deep-equal@1.0.1 | | +-- i@0.3.4 | | +-- mkdirp@0.5.1 | | | `-- minimist@0.0.8 | | +-- ncp@0.4.2 | | `-- rimraf@2.5.0 | | `-- glob@6.0.4 | | +-- inflight@1.0.4 | | | `-- wrappy@1.0.1 | | +-- minimatch@3.0.0 | | | `-- brace-expansion@1.1.2 | | | +-- balanced-match@0.3.0 | | | `-- concat-map@0.0.1 | | +-- once@1.3.3 | | `-- path-is-absolute@1.0.0 | `-- winston@0.8.3 | +-- async@0.2.10 | `-- colors@0.6.2 +-- request@2.67.0 | +-- aws-sign2@0.6.0 | +-- bl@1.0.0 | | `-- readable-stream@2.0.5 | | +-- core-util-is@1.0.2 | | +-- process-nextick-args@1.0.6 | | +-- string_decoder@0.10.31 | | `-- util-deprecate@1.0.2 | +-- caseless@0.11.0 | +-- combined-stream@1.0.5 | | `-- delayed-stream@1.0.0 | +-- extend@3.0.0 | +-- forever-agent@0.6.1 | +-- form-data@1.0.0-rc3 | | `-- async@1.5.2 | +-- har-validator@2.0.5 | | +-- chalk@1.1.1 | | | +-- ansi-styles@2.1.0 | | | +-- has-ansi@2.0.0 | | | `-- supports-color@2.0.0 | | +-- commander@2.9.0 | | | `-- graceful-readlink@1.0.1 | | +-- is-my-json-valid@2.12.4 | | | +-- generate-function@2.0.0 | | | +-- generate-object-property@1.2.0 | | | | `-- is-property@1.0.2 | | | +-- jsonpointer@2.0.0 | | | `-- xtend@4.0.1 | | `-- pinkie-promise@2.0.0 | | `-- pinkie@2.0.1 | +-- hawk@3.1.2 | | +-- boom@2.10.1 | | +-- cryptiles@2.0.5 | | +-- hoek@2.16.3 | | `-- sntp@1.0.9 | +-- http-signature@1.1.0 | | +-- assert-plus@0.1.5 | | +-- jsprim@1.2.2 | | | +-- extsprintf@1.0.2 | | | +-- json-schema@0.2.2 | | | `-- verror@1.3.6 | | `-- sshpk@1.7.3 | | +-- asn1@0.2.3 | | +-- assert-plus@0.2.0 | | +-- dashdash@1.12.1 | | +-- ecc-jsbn@0.1.1 | | +-- jodid25519@1.0.2 | | +-- jsbn@0.1.0 | | `-- tweetnacl@0.13.3 | +-- is-typedarray@1.0.0 | +-- isstream@0.1.2 | +-- json-stringify-safe@5.0.1 | +-- mime-types@2.1.9 | | `-- mime-db@1.21.0 | +-- node-uuid@1.4.7 | +-- oauth-sign@0.8.0 | +-- qs@5.2.0 | +-- stringstream@0.0.5 | +-- tough-cookie@2.2.1 | `-- tunnel-agent@0.4.2 +-- semver@4.3.6 +-- socket.io@1.4.4 | +-- debug@2.2.0 | | `-- ms@0.7.1 | +-- engine.io@1.6.7 | | +-- accepts@1.1.4 | | | +-- mime-types@2.0.14 | | | | `-- mime-db@1.12.0 | | | `-- negotiator@0.4.9 | | +-- base64id@0.1.0 | | +-- engine.io-parser@1.2.4 | | | +-- after@0.8.1 | | | +-- arraybuffer.slice@0.0.6 | | | +-- base64-arraybuffer@0.1.2 | | | +-- blob@0.0.4 | | | +-- has-binary@0.1.6 | | | `-- utf8@2.1.0 | | `-- ws@1.0.1 | | +-- options@0.0.6 | | `-- ultron@1.0.2 | +-- has-binary@0.1.7 | | `-- isarray@0.0.1 | +-- socket.io-adapter@0.4.0 | | `-- socket.io-parser@2.2.2 | | +-- debug@0.7.4 | | `-- json3@3.2.6 | `-- socket.io-parser@2.2.6 | +-- benchmark@1.0.0 | +-- component-emitter@1.1.2 | `-- json3@3.3.2 +-- socket.io-client@1.4.4 | +-- backo2@1.0.2 | +-- component-bind@1.0.0 | +-- component-emitter@1.2.0 | +-- engine.io-client@1.6.7 | | +-- component-inherit@0.0.3 | | +-- has-cors@1.1.0 | | +-- parsejson@0.0.1 | | +-- parseqs@0.0.2 | | +-- xmlhttprequest-ssl@1.5.1 | | `-- yeast@0.1.2 | +-- indexof@0.0.1 | +-- object-component@0.0.3 | +-- parseuri@0.0.4 | | `-- better-assert@1.0.2 | | `-- callsite@1.0.0 | +-- socket.io-parser@2.2.5 | | +-- component-emitter@1.1.2 | | `-- json3@3.3.2 | `-- to-array@0.1.3 +-- tar.gz@0.1.1 | +-- commander@1.1.1 | | `-- keypress@0.1.0 | +-- fstream@0.1.31 | | +-- graceful-fs@3.0.8 | | `-- inherits@2.0.1 | `-- tar@0.1.20 | `-- block-stream@0.0.8 +-- winston@1.1.2 | +-- async@1.0.0 | +-- colors@1.0.3 | +-- cycle@1.0.3 | +-- eyes@0.1.8 | `-- stack-trace@0.0.9 `-- yargs@3.32.0 +-- camelcase@2.0.1 +-- cliui@3.1.0 | +-- strip-ansi@3.0.0 | | `-- ansi-regex@2.0.0 | `-- wrap-ansi@1.0.0 +-- decamelize@1.1.2 | `-- escape-string-regexp@1.0.4 +-- os-locale@1.4.0 | `-- lcid@1.0.0 | `-- invert-kv@1.0.0 +-- string-width@1.0.1 | +-- code-point-at@1.0.0 | | `-- number-is-nan@1.0.0 | `-- is-fullwidth-code-point@1.0.0 +-- window-size@0.1.4 `-- y18n@3.2.0 npm WARN enoent ENOENT, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. root@localhost:/opt/iobroker# sudo npm install iobroker --unsafe-perm npm ERR! not a package /opt/iobroker/iobroker npm ERR! addLocal Could not install /opt/iobroker/iobroker npm ERR! Linux 3.0.8+ npm ERR! argv "node" "/usr/bin/npm" "install" "iobroker" "--unsafe-perm" npm ERR! node v0.10.41 npm ERR! npm v3.5.3 npm ERR! path /tmp/npm-19813-d8a7a371/unpack-7b180b18/package.json npm ERR! code ENOENT npm ERR! errno 34 npm ERR! enoent ENOENT, open '/tmp/npm-19813-d8a7a371/unpack-7b180b18/package.json' npm ERR! enoent ENOENT, open '/tmp/npm-19813-d8a7a371/unpack-7b180b18/package.json' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/npm-debug.log root@localhost:/opt/iobroker# ./iobroker start Starting iobroker controller daemon... iobroker controller daemon started. PID: 19858 root@localhost:/opt/iobroker# cd .. root@localhost:/opt# rm -f -r "null" root@localhost:/opt# rm -f -r "iobroker" root@localhost:/opt# ps PID TTY TIME CMD 14367 pts/4 00:00:00 sudo 14374 pts/4 00:00:00 bash 20402 pts/4 00:00:00 ps root@localhost:/opt# kill 19858 bash: kill: (19858) - No such process root@localhost:/opt# ls root@localhost:/opt# mkdir iobroker root@localhost:/opt# cd iobroker root@localhost:/opt/iobroker# chmod 777 /opt/iobroker root@localhost:/opt/iobroker# sudo npm install iobroker --unsafe-perm > iobroker@0.5.6 install /opt/iobroker/node_modules/iobroker > node lib/setup.js npm install iobroker.js-controller --production --prefix /opt/iobroker npm WARN enoent ENOENT, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. npm install iobroker.admin --production --prefix /opt/iobroker sh: 0: getcwd() failed: No such file or directory node.js:844 var cwd = process.cwd(); ^ Error: ENOENT, no such file or directory at Function.startup.resolveArgv0 (node.js:844:23) at startup (node.js:58:13) at node.js:935:3 Write "./iobroker start" to start the ioBroker sh: 0: getcwd() failed: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory sh: 0: getcwd() failed: No such file or directory insserv: pushd() can not change to directory /etc/init.d: No such file or directory update-rc.d: error: insserv rejected the script header chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start iobroker is started. Go to "[http://ip-addr:8081](http://ip-addr:8081)" to open the admin UI. /opt/iobroker `-- iobroker@0.5.6 `-- yargs@1.2.6 `-- minimist@0.1.0 npm WARN enoent ENOENT, open '/opt/iobroker/package.json' npm WARN iobroker No description npm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. root@localhost:/opt/iobroker#