NEWS
Ошибка установки на PI2 из-за serialport
-
Коллеги, добрый
Ставлю на Raspberry 2 ioBroker. Установка чистая. Пробовал и на Raspberry 3, ситуация та же.
При установке вылетает ошибка:
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v46-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@4.2.1 (node-v46 ABI) (falling back to source compile with node-gyp)Перепробовал все варианты node…
Rnj
-
Я так понял, он стоит в зависимостях у драйвера discovery, который ставится по умолчанию.
По сути, не нужен и discovery.
Но что-то явно ломается при ошибках при установке.
Iobroker запускается только один раз. Драйверы не ставятся, при попытке перезапустить, ошибка даже от команды iobroker stop
-
В общем пока вроде помогло это:
wget http://node-arm.herokuapp.com/node_latest_armhf.deb dpkg -i node_latest_armhf.deb npm install -g node-gyp sudo npm install --unsafe-perm serialportПотом:
sudo apt-get install build-essential libavahi-compat-libdnssd-dev libdevice-serialport-perlПотом уже установка.
Но ошибки есть:
root@stand:/opt/iobroker# sudo npm install iobroker --unsafe-perm / > iobroker@1.0.2 install /opt/iobroker/node_modules/iobroker > node lib/setup.js npm install iobroker.discovery --production --prefix /opt/iobroker node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v46-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@4.2.1 (node-v46 ABI) (falling back to source compile with node-gyp) npm install iobroker.admin --production --prefix /opt/iobroker npm WARN engine hawk@6.0.2: wanted: {"node":">=4.5.0"} (current: {"node":"4.2.1","npm":"2.14.7"}) npm install iobroker.js-controller --production --prefix /opt/iobroker npm WARN deprecated tar.gz@1.0.7: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar npm WARN deprecated localhost.daplie.me-certificates@1.3.5: this package has been deprecated npm WARN engine hawk@6.0.2: wanted: {"node":">=4.5.0"} (current: {"node":"4.2.1","npm":"2.14.7"}) Write "./iobroker start" to start the ioBroker /usr/bin/env: «node\r»: Нет такого файла или каталога 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" to open the admin UI. iobroker@1.0.2 node_modules/iobroker └── yargs@7.1.0 (get-caller-file@1.0.2, set-blocking@2.0.0, y18n@3.2.1, decamelize@1.2.0, camelcase@3.0.0, which-module@1.0.0, yargs-parser@5.0.0, require-main-filename@1.0.1, require-directory@2.1.1, string-width@1.0.2, cliui@3.2.0, os-locale@1.4.0, read-pkg-up@1.0.1)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login