Перейти к содержанию

Рекомендуемые сообщения

Опубликовано
10 минут назад, TheBB сказал:

выбрано по одному варианту представления графиков (надо ж тестить хоть что-то ))) )

Увидел, что установили ДопУзлы 'node-red-dashboard' и 'node-red-node-ping'.

Пингуете с помощью ДопУзла 'node-red-node-ping'.

И настроили 6 вариантов Графиков ДопУзел из 'node-red-dashboard'.

А 'node-red-daemon' что делает ?

Опубликовано
1 минуту назад, iFinder сказал:

А 'node-red-daemon' что делает ?

Понятия не имею, проверял установку доп. модулей. Кстати, ставятся не все (но к теме это не относится).

Опубликовано
3 минуты назад, TheBB сказал:
14 минуты назад, iFinder сказал:

Даже когда запускаете при загрузке и без указания Рабочей папки ?

Видимо, да.

Но это вроде не при загрузке самой Entware ?

Опубликовано
18 минут назад, iFinder сказал:

Но это вроде не при загрузке самой Entware ?

Скрытый текст

 


~ # 
~ # date
Thu Nov 21 17:54:45 MSK 2019
~ # 
~ # reboot
Connection to 192.168.8.1 closed by remote host.
Connection to 192.168.8.1 closed.
xxx@xxx:~ ---
➜ ssh root@192.168.8.1 -p 222
root@192.168.8.1's password: 


BusyBox v1.31.1 () built-in shell (ash)

~ # date
Thu Nov 21 18:01:19 MSK 2019
~ # 
~ # cat /opt/var/log/node-red.log 
...
21 Nov 18:06:52 - [info] Installing module: node-red-contrib-snap4city-developer, version: 0.1.5
21 Nov 18:09:03 - [info] Installed module: node-red-contrib-snap4city-developer
21 Nov 18:09:04 - [info] Added node types:
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search-near-service
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search-within-gps-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search-within-wkt-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search-within-stored-wkt-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search-by-municipality
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-search-by-queryid
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-info-dev
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:service-info-mapped
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:full-text-search-dev
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:full-text-search-within-wkt-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:full-text-search-within-gps-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:full-text-search-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:full-text-search-exp
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:event-search-dev
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:event-search-exp
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:event-search-within-wkt-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:event-search-within-gps-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:event-search-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:address-geometry-search-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:address-search-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:geometry-search-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:address-poi-search-by-text
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:address-poi-search-by-text-exp
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:address-poi-search-by-text-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:bus-routes-search
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:bus-routes-search-near-gps-position
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:bus-routes-search-within-gps-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:bus-routes-search-within-wkt-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:bus-routes-search-within-stored-wkt-area
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:tpl-routes
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:tpl-stops
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:check-exist-job
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:check-exist-trigger
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:is-in-standby-mode
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:is-shutdown
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:is-started
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-currently-executing-jobs
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-job-detail
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-triggers-of-job
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-job-group-names
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-trigger-group-names
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-paused-trigger-groups
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-job-fire-times
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:get-system-status
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:trigger-job
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:pause-all
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:pause-job
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:pause-jobs
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:pause-trigger
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:pause-triggers
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:resume-all
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:resume-job
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:resume-jobs
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:resume-trigger
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:resume-triggers
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:notificator-history-events
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:descriptive-statistics
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:trend-plot
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:time-series-predictions
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:machine-learning-predictions
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:anomaly-detection
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:datagate insert
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:datagate search
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:datagate create
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:datagate-credentials
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:mapping
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:set-mapping
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:plumber-data-analytic
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:snap4city-authentication-dev
21 Nov 18:09:04 - [info]  - node-red-contrib-snap4city-developer:portia-crawler
~ # 

 

 

Опубликовано

Спасибо Вам за проведённые исследования.

Получается, что у Вас так:

1. Запуск Node-Red ПРИ ЗАГРУЗКЕ БЕЗ указания Рабочей папки приводит к тому, что Node-Red запускается и Рабочей папкой считает '/opt/lib/node_modules/node-red/'. При этом тестовый файл записывается в этой папке, а ДопУзлы устанавливаются в папку '/opt/lib/node_modules/node-red/node_modules' и NodeRed их видит.

2. Запуск Node-Red ВРУЧНУЮ ПОСЛЕ ЗАГРУЗКИ БЕЗ указания Рабочей папки приводит к тем же результатам, что и в п.1.

3. Запуск Node-Red ПРИ ЗАГРУЗКЕ С явным указанием Рабочей папки '/opt/root/.node-red' приводит к тем же результатам, что и в п.1.

Единственно, что меня смущает, что у Вас Рабочая папка в начале имени не имеет знака точки '.'. Осваивая работу в Node-Red, я встречал в инете описания настроек, в которых имя Рабочей папки начиналось со знака точки '.'

Надо будет найти возможность и установить Optware и Node-Red с нуля...

Опубликовано

1 да, кроме тестового файла, он, или по полному пути, или в "/opt/root"

~ # find /opt -name "test.file.txt"
/opt/tmp/test.file.txt
/opt/root/test.file.txt
~ #

2 см. 1

3 см. 1 (у меня в "/opt/root" от "node" только директория ".npm" и файл настроек ".npmrc")

~ # ls -al .npm*
-rw-r--r-- 1 root root 2567 Nov 16 17:06 .npmrc

.npm:
total 24
drwxr-xr-x  5 root root 4096 Nov 21 18:09 .
drwxr-xr-x 15 root root 4096 Nov 21 17:17 ..
-rw-r--r--  1 root root  173 Nov 21 18:09 anonymous-cli-metrics.json
drwxr-xr-x  5 root root 4096 Oct 27 13:09 _cacache
drwxr-xr-x  2 root root 4096 Nov 21 18:08 _locks
drwxr-xr-x  2 root root 4096 Nov 21 18:04 _logs
~ # 

 

31 минуту назад, iFinder сказал:

Единственно, что меня смущает...

см. 3

Опубликовано
5 минут назад, TheBB сказал:
40 минут назад, iFinder сказал:

Единственно, что меня смущает...

см. 3

Я имел ввиду, что встречал Рабочую папку '.node-red', но в Вашей Node-Red её совсем нет.

Опубликовано

Это при "классической установке" в домашнюю директорию пользователя. А я всё перенёс в "/opt/lib/node_modules/...".

Опубликовано

Нашёл нечто, что может объяснить различие моей Node-Red и Вашей.

Вот фрагмент файла: '/opt/lib/node_modules/node-red/red.js':

Скрытый текст

if (parsedArgs.settings) {
    // User-specified settings file
    settingsFile = parsedArgs.settings;
} else if (parsedArgs.userDir && fs.existsSync(path.join(parsedArgs.userDir,"settings.js"))) {
    // User-specified userDir that contains a settings.js
    settingsFile = path.join(parsedArgs.userDir,"settings.js");
} else {
    if (fs.existsSync(path.join(process.env.NODE_RED_HOME,".config.json"))) {
        // NODE_RED_HOME contains user data - use its settings.js
        settingsFile = path.join(process.env.NODE_RED_HOME,"settings.js");
    } else if (process.env.HOMEPATH && fs.existsSync(path.join(process.env.HOMEPATH,".node-red",".config.json"))) {
        // Consider compatibility for older versions
        settingsFile = path.join(process.env.HOMEPATH,".node-red","settings.js");
    } else {
        var userDir = parsedArgs.userDir || path.join(process.env.HOME || process.env.USERPROFILE || process.env.HOMEPATH,".node-red");
        var userSettingsFile = path.join(userDir,"settings.js");
        if (fs.existsSync(userSettingsFile)) {
            // $HOME/.node-red/settings.js exists
            settingsFile = userSettingsFile;
        } else {
            var defaultSettings = path.join(__dirname,"settings.js");
            var settingsStat = fs.statSync(defaultSettings);
            if (settingsStat.mtime.getTime() <= settingsStat.ctime.getTime()) {
                // Default settings file has not been modified - safe to copy
                fs.copySync(defaultSettings,userSettingsFile);
                settingsFile = userSettingsFile;
            } else {
                // Use default settings.js as it has been modified
                settingsFile = defaultSettings;
            }
        }
    }
}
 

И еще у меня:

~ # echo $HOME
/opt/root
~ # echo $NODE_RED_HOME

~ #

 

Опубликовано
2 минуты назад, TheBB сказал:

Это при "классической установке" в домашнюю директорию пользователя. А я всё перенёс в "/opt/lib/node_modules/...".

А как выглядел перенос ? и на каком этапе ?

Опубликовано
22 минуты назад, iFinder сказал:

Нашёл нечто, что может объяснить различие моей Node-Red и Вашей.

Не уверен, хотя и правил где-то что-то.

23 минуты назад, iFinder сказал:

И еще у меня:

Аналогично. Ничего не объявлял, наверно, можно и задать, типа:

~ # echo $NODE_RED_HOME

~ # export NODE_RED_HOME=/opt/var/lib/node-red
~ # echo $NODE_RED_HOME
/opt/var/lib/node-red
~ # unset NODE_RED_HOME
~ # echo $NODE_RED_HOME

~ #

 

25 минут назад, iFinder сказал:

А как выглядел перенос ? и на каком этапе ?

уже не вспомню.

 

  • 2 месяца спустя...
Опубликовано

Можно вкратце обобщить? Как, имеет смысл устанавливать? Можно порядок действий, основанный на вашем опыте?

Опубликовано
В 28.01.2020 в 20:18, Lstt сказал:

Можно вкратце обобщить? Как, имеет смысл устанавливать? Можно порядок действий, основанный на вашем опыте?

opkg install http://bin.entware.net/mipselsf-k3.4/keenetic/test/node-red_1.0.3-1_mipsel-3.4.ipk

log:

Скрытый текст

 


ssh root@ip.add.re.ss -p 222
root@ip.add.re.ss's password: 


BusyBox v1.31.1 () built-in shell (ash)

~ # opkg install http://bin.entware.net/mipselsf-k3.4/keenetic/test/node-red_1.0.3-1_mipsel-3.4.ipk
Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/test/node-red_1.0.3-1_mipsel-3.4.ipk
Installing node-red (1.0.3-1) to root...
Installing node (v8.16.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/node_v8.16.1-1_mipsel-3.4.ipk
Installing node-npm (v8.16.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/node-npm_v8.16.1-1_mipsel-3.4.ipk
Configuring node.
Configuring node-npm.
Configuring node-red.
~ # 
~ # /opt/etc/init.d/S99node-red start
Starting Node-Red..
~ # ps | grep -v grep | grep node-red
  831 root      125m R    {node-red} /opt/bin/node /opt/bin/node-red -v -u /opt/lib/node/node-red
~ # ps | grep -v grep | grep node-red
  831 root      134m S    node-red
~ # 
~ # /opt/etc/init.d/S99node-red restart
Restarting Node-Red..
Stopping Node-Red..
Starting Node-Red..
Restarted.
~ # 
~ # ps | grep -v grep | grep node-red
  926 root      135m S    node-red
~ # 
~ # /opt/etc/init.d/S99node-red stop
Stopping Node-Red..
~ # 
~ # ps | grep -v grep | grep node-red
~ # 
~ # cat /opt/var/log/node-red.log 

Node-RED service start: Wed Jan 29 21:14:49 MSK 2020
Logging to 
29 Jan 21:15:08 - [info] 

Welcome to Node-RED
===================

29 Jan 21:15:08 - [info] Node-RED version: v1.0.3
29 Jan 21:15:08 - [info] Node.js  version: v8.16.1
29 Jan 21:15:08 - [info] Linux 4.9-ndm-4 mipsel LE
29 Jan 21:15:20 - [info] Loading palette nodes
29 Jan 21:15:36 - [info] Settings file  : /opt/lib/node/node-red/settings.js
29 Jan 21:15:36 - [info] Context store  : 'default' [module=memory]
29 Jan 21:15:36 - [info] User directory : /opt/lib/node/node-red
29 Jan 21:15:36 - [warn] Projects disabled : editorTheme.projects.enabled=false
29 Jan 21:15:36 - [info] Flows file     : /opt/lib/node/node-red/flows_Keenetic_Omni.json
29 Jan 21:15:36 - [info] Creating new flow file
29 Jan 21:15:36 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

29 Jan 21:15:36 - [info] Server now running at http://127.0.0.1:1880/
29 Jan 21:15:36 - [info] Starting flows
29 Jan 21:15:36 - [info] Started flows
29 Jan 21:16:21 - [info] Stopping flows
29 Jan 21:16:21 - [info] Stopped flows

Node-RED service stop: Wed Jan 29 21:16:24 MSK 2020

Node-RED service start: Wed Jan 29 21:16:27 MSK 2020
Logging to 
29 Jan 21:16:45 - [info] 

Welcome to Node-RED
===================

29 Jan 21:16:45 - [info] Node-RED version: v1.0.3
29 Jan 21:16:45 - [info] Node.js  version: v8.16.1
29 Jan 21:16:45 - [info] Linux 4.9-ndm-4 mipsel LE
29 Jan 21:16:56 - [info] Loading palette nodes
29 Jan 21:17:10 - [info] Settings file  : /opt/lib/node/node-red/settings.js
29 Jan 21:17:10 - [info] Context store  : 'default' [module=memory]
29 Jan 21:17:10 - [info] User directory : /opt/lib/node/node-red
29 Jan 21:17:10 - [warn] Projects disabled : editorTheme.projects.enabled=false
29 Jan 21:17:10 - [info] Flows file     : /opt/lib/node/node-red/flows_Keenetic_Omni.json
29 Jan 21:17:11 - [info] Creating new flow file
29 Jan 21:17:11 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

29 Jan 21:17:11 - [info] Starting flows
29 Jan 21:17:11 - [info] Started flows
29 Jan 21:17:11 - [info] Server now running at http://127.0.0.1:1880/
29 Jan 21:17:33 - [info] Stopping flows
29 Jan 21:17:33 - [info] Stopped flows

Node-RED service stop: Wed Jan 29 21:17:36 MSK 2020
~ # 
~ # reboot

Connection to ip.add.re.ss closed by remote host.
Connection to ip.add.re.ss closed.

xxx@xxx:~ ------------------
➜ ssh root@ip.add.re.ss -p 222
root@ip.add.re.ss's password: 


BusyBox v1.31.1 () built-in shell (ash)

~ # ps | grep -v grep | grep node-red
  500 root      135m S    node-red
~ # 
...

 

 

Опубликовано (изменено)
В 28.01.2020 в 20:18, Lstt сказал:

Можно вкратце обобщить? Как, имеет смысл устанавливать? Можно порядок действий, основанный на вашем опыте?

Конечно можно. В этой теме достаточно обобщений - Специально для начинающих и писалось.

Можете даже на эти обобщения ссылки сделать.

Изменено пользователем iFinder
Опубликовано
8 минут назад, iFinder сказал:

Конечно можно. В этой теме достаточно обобщений - Специально для начинающих и писалось.

Начинаем "с чистого листа", т.к. `nod-red` "опакечен". Ждём-с инструкции...

Опубликовано (изменено)
7 минут назад, TheBB сказал:

Начинаем "с чистого листа", т.к. `nod-red` "опакечен". Ждём-с инструкции...

Правильно ли я понимаю, что раньше `nod-red` был пакетом `npm`, который был пакетом `Entware`, а сейчас `nod-red` стал самостоятельным пакетом `Entware`, т.е. в Вашей терминологии опакечен ?

Ждём-с инструкции... от кого ?

И как узнать, что они появились ?

Изменено пользователем iFinder
Опубликовано

Почти, "опакечен" (создан пакет `node-red`, см. аналоги node-* в owrt) для "удобства пользования". Можно, как и раньше, ставить руками с помощью `npm ...`, править пути, создавать скрипты... или установить пакет. AFAIR, я инструкций не обещал )))

25 минут назад, iFinder сказал:

И как узнать, что они появились ?

Инструкции? Как напишите, так и появятся. Можно будет и в "решения" закинуть, если кейс интересный будет )))

Опубликовано (изменено)
1 час назад, TheBB сказал:

Почти, "опакечен"

1. Почему почти ?

2. В чём разница:

http://bin.entware.net/mipselsf-k3.4/Packages.html - Это пакеты Entware. Ясно.

http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.html - Это пакеты Entware для Keenetic. Но как это понимать ? Что значит для Keenetic ? Ведь все пакеты Entware тоже подходят для Keenetic. 

http://bin.entware.net/mipselsf-k3.4/keenetic/test/ - Это тестовые пакеты Entware для Keenetic. И это как понимать, что curl есть и здесь и в http://bin.entware.net/mipselsf-k3.4/Packages.html ? 

3. Кому спасибо сказать за опакечивание ?

1 час назад, TheBB сказал:

Инструкции? Как напишите, так и появятся.

4. Вы предполагаете, что там сложности возникнут, из-за которых инструкцию писать придётся ?

Изменено пользователем iFinder
Опубликовано
15 минут назад, iFinder сказал:

Это пакеты Entware. Ясно.

универсальные для всех MIPSel железяк

16 минут назад, iFinder сказал:

Что значит для Keenetic ?

специфика, пакеты только для Keenetic`ов, напр., `libndm`

16 минут назад, iFinder сказал:

Это тестовые пакеты Entware для Keenetic.

всякие тестовые сборки, универсальные для всех MIPSel железяк

17 минут назад, iFinder сказал:

... curl есть и здесь и в...

собран с доп. опциями (см. конфиг от и ниже) (!старая версия, будет удалён)

22 минуты назад, iFinder сказал:

1. Почему почти ?

всё, что я выше нацарапал

23 минуты назад, iFinder сказал:

3. Кому спасибо сказать за опакечивание ?

дык, кому хотите )))

24 минуты назад, iFinder сказал:

4. Вы предполагаете, что там сложности возникнут, из-за которых инструкцию писать придётся ?

практическое применение (Вам же `nod-red` зачем-то понадобился, да и выше товарищ заинтересовался)

Опубликовано
В 29.01.2020 в 22:02, TheBB сказал:

opkg install http://bin.entware.net/mipselsf-k3.4/keenetic/test/node-red_1.0.3-1_mipsel-3.4.ipk

log:

  Показать содержимое

 



ssh root@ip.add.re.ss -p 222
root@ip.add.re.ss's password: 


BusyBox v1.31.1 () built-in shell (ash)

~ # opkg install http://bin.entware.net/mipselsf-k3.4/keenetic/test/node-red_1.0.3-1_mipsel-3.4.ipk
Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/test/node-red_1.0.3-1_mipsel-3.4.ipk
Installing node-red (1.0.3-1) to root...
Installing node (v8.16.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/node_v8.16.1-1_mipsel-3.4.ipk
Installing node-npm (v8.16.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/node-npm_v8.16.1-1_mipsel-3.4.ipk
Configuring node.
Configuring node-npm.
Configuring node-red.
~ # 
~ # /opt/etc/init.d/S99node-red start
Starting Node-Red..
~ # ps | grep -v grep | grep node-red
  831 root      125m R    {node-red} /opt/bin/node /opt/bin/node-red -v -u /opt/lib/node/node-red
~ # ps | grep -v grep | grep node-red
  831 root      134m S    node-red
~ # 
~ # /opt/etc/init.d/S99node-red restart
Restarting Node-Red..
Stopping Node-Red..
Starting Node-Red..
Restarted.
~ # 
~ # ps | grep -v grep | grep node-red
  926 root      135m S    node-red
~ # 
~ # /opt/etc/init.d/S99node-red stop
Stopping Node-Red..
~ # 
~ # ps | grep -v grep | grep node-red
~ # 
~ # cat /opt/var/log/node-red.log 

Node-RED service start: Wed Jan 29 21:14:49 MSK 2020
Logging to 
29 Jan 21:15:08 - [info] 

Welcome to Node-RED
===================

29 Jan 21:15:08 - [info] Node-RED version: v1.0.3
29 Jan 21:15:08 - [info] Node.js  version: v8.16.1
29 Jan 21:15:08 - [info] Linux 4.9-ndm-4 mipsel LE
29 Jan 21:15:20 - [info] Loading palette nodes
29 Jan 21:15:36 - [info] Settings file  : /opt/lib/node/node-red/settings.js
29 Jan 21:15:36 - [info] Context store  : 'default' [module=memory]
29 Jan 21:15:36 - [info] User directory : /opt/lib/node/node-red
29 Jan 21:15:36 - [warn] Projects disabled : editorTheme.projects.enabled=false
29 Jan 21:15:36 - [info] Flows file     : /opt/lib/node/node-red/flows_Keenetic_Omni.json
29 Jan 21:15:36 - [info] Creating new flow file
29 Jan 21:15:36 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

29 Jan 21:15:36 - [info] Server now running at http://127.0.0.1:1880/
29 Jan 21:15:36 - [info] Starting flows
29 Jan 21:15:36 - [info] Started flows
29 Jan 21:16:21 - [info] Stopping flows
29 Jan 21:16:21 - [info] Stopped flows

Node-RED service stop: Wed Jan 29 21:16:24 MSK 2020

Node-RED service start: Wed Jan 29 21:16:27 MSK 2020
Logging to 
29 Jan 21:16:45 - [info] 

Welcome to Node-RED
===================

29 Jan 21:16:45 - [info] Node-RED version: v1.0.3
29 Jan 21:16:45 - [info] Node.js  version: v8.16.1
29 Jan 21:16:45 - [info] Linux 4.9-ndm-4 mipsel LE
29 Jan 21:16:56 - [info] Loading palette nodes
29 Jan 21:17:10 - [info] Settings file  : /opt/lib/node/node-red/settings.js
29 Jan 21:17:10 - [info] Context store  : 'default' [module=memory]
29 Jan 21:17:10 - [info] User directory : /opt/lib/node/node-red
29 Jan 21:17:10 - [warn] Projects disabled : editorTheme.projects.enabled=false
29 Jan 21:17:10 - [info] Flows file     : /opt/lib/node/node-red/flows_Keenetic_Omni.json
29 Jan 21:17:11 - [info] Creating new flow file
29 Jan 21:17:11 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

29 Jan 21:17:11 - [info] Starting flows
29 Jan 21:17:11 - [info] Started flows
29 Jan 21:17:11 - [info] Server now running at http://127.0.0.1:1880/
29 Jan 21:17:33 - [info] Stopping flows
29 Jan 21:17:33 - [info] Stopped flows

Node-RED service stop: Wed Jan 29 21:17:36 MSK 2020
~ # 
~ # reboot

Connection to ip.add.re.ss closed by remote host.
Connection to ip.add.re.ss closed.

xxx@xxx:~ ------------------
➜ ssh root@ip.add.re.ss -p 222
root@ip.add.re.ss's password: 


BusyBox v1.31.1 () built-in shell (ash)

~ # ps | grep -v grep | grep node-red
  500 root      135m S    node-red
~ # 
...

 

 

Спасибо большое! Всё работает! Есть ли шанс как-то заставить устанавливаться пакетам npm на Omni (KN-1410) со 128 Мб памяти? При установки практически любых пакетов npm - полная загрузка проца, память 100-108 мб, потом подвисание и вылет установки..Может быть есть какие ключи запусками, например, ограничивающие потребление нодой памяти, ресурсов проца?

Опубликовано
3 часа назад, Lstt сказал:

на Omni (KN-1410)

на нём и проверял (приложенный лог) + swap 2 GB

3 часа назад, Lstt сказал:

При установки практически любых пакетов npm

приведите пример (или лог установки), т.к. не все пакеты могут быть установлены.

Опубликовано (изменено)
В 02.02.2020 в 12:15, TheBB сказал:

на нём и проверял (приложенный лог) + swap 2 GB

приведите пример (или лог установки), т.к. не все пакеты могут быть установлены.

Да, создал раздел swap 2Гб, включил Zram вот лог

Цитата

Installing node-red (1.0.3-1) to root...
Installing libnghttp2 (1.40.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libnghttp2_1.40.0-1_mipsel-3.4.ipk
Installing libuv (1.32.0-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libuv_1.32.0-1_mipsel-3.4.ipk
Installing libhttp-parser (2.9.2-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libhttp-parser_2.9.2-2_mipsel-3.4.ipk
Installing node (v8.16.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/node_v8.16.1-1_mipsel-3.4.ipk
Installing node-npm (v8.16.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/node-npm_v8.16.1-1_mipsel-3.4.ipk
Configuring libnghttp2.
Configuring libuv.
Configuring libhttp-parser.
Configuring node.
Configuring node-npm.
Configuring node-red.
~ # 
~ # npm install node-red-contrib-mqtt-broker
npm WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /opt/root/.npm/_logs/2020-02-03T12_54_06_037Z-debug.log
~ # 
 

 

Изменено пользователем Lstt
Опубликовано

А почему не в web:

Скрытый текст


-----------------------------------------------------------
2020-02-03T13:22:36.272Z Install : node-red-contrib-mqtt-broker 0.2.4

2020-02-03T13:22:35.958Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-mqtt-broker@0.2.4
2020-02-03T13:24:28.860Z [err] npm
2020-02-03T13:24:28.882Z [err]  WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher
2020-02-03T13:24:35.355Z [err] npm
2020-02-03T13:24:35.358Z [err]  
2020-02-03T13:24:35.360Z [err] WARN
2020-02-03T13:24:35.367Z [err]  deprecated node-uuid@1.4.8: Use uuid module instead

-----------------------------------------------------------
2020-02-03T13:31:16.863Z Install : node-red-contrib-mqtt-broker 0.2.4

2020-02-03T13:32:10.360Z [out] 
2020-02-03T13:32:10.360Z [out] > fs-ext@0.5.0 install /opt/lib/node/node-red/node_modules/fs-ext
2020-02-03T13:32:10.360Z [out] > node-gyp configure build
2020-02-03T13:32:10.360Z [out] 
2020-02-03T13:32:31.403Z [err] gyp
2020-02-03T13:32:32.012Z [err]  WARN install got an error, rolling back install
2020-02-03T13:32:32.012Z [err] gyp ERR! configure error 
2020-02-03T13:32:32.012Z [err] gyp ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:32:32.012Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:32:32.012Z [err] gyp ERR! command "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
2020-02-03T13:32:32.012Z [err] gyp ERR! cwd /opt/lib/node/node-red/node_modules/fs-ext
2020-02-03T13:32:32.012Z [err] gyp ERR! node -v v8.16.1
2020-02-03T13:32:32.012Z [err] gyp ERR! node-gyp -v v3.8.0
2020-02-03T13:32:32.012Z [err] gyp ERR! not ok 
2020-02-03T13:32:33.243Z [out] 
2020-02-03T13:32:33.243Z [out] > kerberos@0.0.24 install /opt/lib/node/node-red/node_modules/kerberos
2020-02-03T13:32:33.243Z [out] > (node-gyp rebuild) || (exit 0)
2020-02-03T13:32:33.243Z [out] 
2020-02-03T13:32:48.976Z [err] gyp
2020-02-03T13:32:48.979Z [err]  WARN install got an error, rolling back install
2020-02-03T13:32:48.979Z [err] gyp ERR! configure error 
2020-02-03T13:32:48.979Z [err] gyp ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:32:48.979Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:32:48.979Z [err] gyp ERR! command "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-03T13:32:48.979Z [err] gyp ERR! cwd /opt/lib/node/node-red/node_modules/kerberos
2020-02-03T13:32:48.979Z [err] gyp ERR! node -v v8.16.1
2020-02-03T13:32:48.979Z [err] gyp ERR! node-gyp -v v3.8.0
2020-02-03T13:32:48.979Z [err] gyp ERR! not ok 
2020-02-03T13:32:51.024Z [out] 
2020-02-03T13:32:51.024Z [out] > snappy@5.0.5 install /opt/lib/node/node-red/node_modules/snappy
2020-02-03T13:32:51.024Z [out] > node-gyp rebuild
2020-02-03T13:32:51.024Z [out] 
2020-02-03T13:33:05.532Z [err] gyp
2020-02-03T13:33:05.537Z [err]  
2020-02-03T13:33:05.540Z [err] WARN
2020-02-03T13:33:05.541Z [err]  
2020-02-03T13:33:05.545Z [err] install
2020-02-03T13:33:05.546Z [err]  got an error, rolling back install
2020-02-03T13:33:05.568Z [err] gyp
2020-02-03T13:33:05.571Z [err]  
2020-02-03T13:33:05.572Z [err] ERR!
2020-02-03T13:33:05.576Z [err]  configure error 
2020-02-03T13:33:05.576Z [err] gyp
2020-02-03T13:33:05.581Z [err]  
2020-02-03T13:33:05.585Z [err] ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:33:05.593Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:33:05.596Z [err] gyp
2020-02-03T13:33:05.598Z [err]  
2020-02-03T13:33:05.603Z [err] ERR! command "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-03T13:33:05.603Z [err] gyp ERR! cwd
2020-02-03T13:33:05.605Z [err]  /opt/lib/node/node-red/node_modules/snappy
2020-02-03T13:33:05.607Z [err] gyp
2020-02-03T13:33:05.609Z [err]  
2020-02-03T13:33:05.614Z [err] ERR! node -v v8.16.1
2020-02-03T13:33:05.614Z [err] gyp 
2020-02-03T13:33:05.615Z [err] ERR!
2020-02-03T13:33:05.617Z [err]  
2020-02-03T13:33:05.619Z [err] node-gyp -v
2020-02-03T13:33:05.626Z [err]  v3.8.0
2020-02-03T13:33:05.626Z [err] gyp ERR! not ok 
2020-02-03T13:33:05.751Z [out] 
2020-02-03T13:33:05.751Z [out] > leveldown@1.4.6 install /opt/lib/node/node-red/node_modules/leveldown
2020-02-03T13:33:05.751Z [out] > prebuild --install
2020-02-03T13:33:05.751Z [out] 
2020-02-03T13:33:05.826Z [err] sh: 
2020-02-03T13:33:05.828Z [err] prebuild: not found
2020-02-03T13:33:05.831Z [err] 
2020-02-03T13:33:06.050Z [out] 
2020-02-03T13:33:06.050Z [out] > zmq@2.15.3 install /opt/lib/node/node-red/node_modules/zmq
2020-02-03T13:33:06.050Z [out] > node-gyp rebuild
2020-02-03T13:33:06.050Z [out] 
2020-02-03T13:33:19.978Z [err] gyp
2020-02-03T13:33:19.984Z [err]  
2020-02-03T13:33:19.986Z [err] WARN
2020-02-03T13:33:19.988Z [err]  
2020-02-03T13:33:19.990Z [err] install
2020-02-03T13:33:19.995Z [err]  got an error, rolling back install
2020-02-03T13:33:20.018Z [err] gyp
2020-02-03T13:33:20.020Z [err]  
2020-02-03T13:33:20.022Z [err] ERR!
2020-02-03T13:33:20.025Z [err]  
2020-02-03T13:33:20.026Z [err] configure error
2020-02-03T13:33:20.033Z [err]  
2020-02-03T13:33:20.033Z [err] gyp ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:33:20.043Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:33:20.043Z [err] gyp ERR!
2020-02-03T13:33:20.046Z [err]  
2020-02-03T13:33:20.048Z [err] command
2020-02-03T13:33:20.050Z [err]  "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-03T13:33:20.053Z [err] gyp ERR! 
2020-02-03T13:33:20.055Z [err] cwd
2020-02-03T13:33:20.059Z [err]  /opt/lib/node/node-red/node_modules/zmq
2020-02-03T13:33:20.059Z [err] gyp ERR! node -v
2020-02-03T13:33:20.061Z [err]  v8.16.1
2020-02-03T13:33:20.063Z [err] gyp
2020-02-03T13:33:20.071Z [err]  ERR! node-gyp -v v3.8.0
2020-02-03T13:33:20.071Z [err] gyp ERR! not ok 
2020-02-03T13:34:11.858Z [err] npm
2020-02-03T13:34:11.861Z [err]  
2020-02-03T13:34:11.863Z [err] WARN
2020-02-03T13:34:11.865Z [err]  ws@7.2.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
2020-02-03T13:34:11.869Z [err] npm
2020-02-03T13:34:11.875Z [err]  WARN ws@7.2.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
2020-02-03T13:34:11.879Z [err] npm
2020-02-03T13:34:11.881Z [err]  
2020-02-03T13:34:11.882Z [err] WARN
2020-02-03T13:34:11.887Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node_modules/fs-ext):
2020-02-03T13:34:11.887Z [err] npm WARN
2020-02-03T13:34:11.889Z [err]  
2020-02-03T13:34:11.891Z [err] optional
2020-02-03T13:34:11.898Z [err]  SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: `node-gyp configure build`
2020-02-03T13:34:11.898Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-03T13:34:11.906Z [err] npm 
2020-02-03T13:34:11.908Z [err] WARN
2020-02-03T13:34:11.918Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules/snappy):
2020-02-03T13:34:11.918Z [err] npm WARN 
2020-02-03T13:34:11.923Z [err] optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install: `node-gyp rebuild`
2020-02-03T13:34:11.923Z [err] npm WARN optional
2020-02-03T13:34:11.925Z [err]  SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-03T13:34:11.928Z [err] npm
2020-02-03T13:34:11.930Z [err]  
2020-02-03T13:34:11.932Z [err] WARN
2020-02-03T13:34:11.939Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: leveldown@1.4.6 (node_modules/leveldown):
2020-02-03T13:34:11.939Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: leveldown@1.4.6 install: `prebuild --install`
2020-02-03T13:34:11.939Z [err] npm WARN 
2020-02-03T13:34:11.941Z [err] optional
2020-02-03T13:34:11.943Z [err]  SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
2020-02-03T13:34:11.946Z [err] npm
2020-02-03T13:34:11.948Z [err]  
2020-02-03T13:34:11.955Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 (node_modules/zmq):
2020-02-03T13:34:11.955Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 install: `node-gyp rebuild`
2020-02-03T13:34:11.955Z [err] npm WARN
2020-02-03T13:34:11.957Z [err]  
2020-02-03T13:34:11.959Z [err] optional
2020-02-03T13:34:11.961Z [err]  SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-03T13:34:11.965Z [err] 
2020-02-03T13:34:12.020Z [out] + node-red-contrib-mqtt-broker@0.2.4
2020-02-03T13:34:12.020Z [out] added 211 packages from 282 contributors in 677.636s
2020-02-03T13:34:12.351Z rc=0

 

желательно этот:

45 минут назад, Lstt сказал:

npm ERR! /opt/root/.npm/_logs/2020-02-03T12_54_06_037Z-debug.log

глянуть )))

Опубликовано
15 часов назад, TheBB сказал:

А почему не в web:

  Показать содержимое


-----------------------------------------------------------
2020-02-03T13:22:36.272Z Install : node-red-contrib-mqtt-broker 0.2.4

2020-02-03T13:22:35.958Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-mqtt-broker@0.2.4
2020-02-03T13:24:28.860Z [err] npm
2020-02-03T13:24:28.882Z [err]  WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher
2020-02-03T13:24:35.355Z [err] npm
2020-02-03T13:24:35.358Z [err]  
2020-02-03T13:24:35.360Z [err] WARN
2020-02-03T13:24:35.367Z [err]  deprecated node-uuid@1.4.8: Use uuid module instead

-----------------------------------------------------------
2020-02-03T13:31:16.863Z Install : node-red-contrib-mqtt-broker 0.2.4

2020-02-03T13:32:10.360Z [out] 
2020-02-03T13:32:10.360Z [out] > fs-ext@0.5.0 install /opt/lib/node/node-red/node_modules/fs-ext
2020-02-03T13:32:10.360Z [out] > node-gyp configure build
2020-02-03T13:32:10.360Z [out] 
2020-02-03T13:32:31.403Z [err] gyp
2020-02-03T13:32:32.012Z [err]  WARN install got an error, rolling back install
2020-02-03T13:32:32.012Z [err] gyp ERR! configure error 
2020-02-03T13:32:32.012Z [err] gyp ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:32:32.012Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:32:32.012Z [err] gyp ERR! command "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
2020-02-03T13:32:32.012Z [err] gyp ERR! cwd /opt/lib/node/node-red/node_modules/fs-ext
2020-02-03T13:32:32.012Z [err] gyp ERR! node -v v8.16.1
2020-02-03T13:32:32.012Z [err] gyp ERR! node-gyp -v v3.8.0
2020-02-03T13:32:32.012Z [err] gyp ERR! not ok 
2020-02-03T13:32:33.243Z [out] 
2020-02-03T13:32:33.243Z [out] > kerberos@0.0.24 install /opt/lib/node/node-red/node_modules/kerberos
2020-02-03T13:32:33.243Z [out] > (node-gyp rebuild) || (exit 0)
2020-02-03T13:32:33.243Z [out] 
2020-02-03T13:32:48.976Z [err] gyp
2020-02-03T13:32:48.979Z [err]  WARN install got an error, rolling back install
2020-02-03T13:32:48.979Z [err] gyp ERR! configure error 
2020-02-03T13:32:48.979Z [err] gyp ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:32:48.979Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:32:48.979Z [err] gyp ERR! command "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-03T13:32:48.979Z [err] gyp ERR! cwd /opt/lib/node/node-red/node_modules/kerberos
2020-02-03T13:32:48.979Z [err] gyp ERR! node -v v8.16.1
2020-02-03T13:32:48.979Z [err] gyp ERR! node-gyp -v v3.8.0
2020-02-03T13:32:48.979Z [err] gyp ERR! not ok 
2020-02-03T13:32:51.024Z [out] 
2020-02-03T13:32:51.024Z [out] > snappy@5.0.5 install /opt/lib/node/node-red/node_modules/snappy
2020-02-03T13:32:51.024Z [out] > node-gyp rebuild
2020-02-03T13:32:51.024Z [out] 
2020-02-03T13:33:05.532Z [err] gyp
2020-02-03T13:33:05.537Z [err]  
2020-02-03T13:33:05.540Z [err] WARN
2020-02-03T13:33:05.541Z [err]  
2020-02-03T13:33:05.545Z [err] install
2020-02-03T13:33:05.546Z [err]  got an error, rolling back install
2020-02-03T13:33:05.568Z [err] gyp
2020-02-03T13:33:05.571Z [err]  
2020-02-03T13:33:05.572Z [err] ERR!
2020-02-03T13:33:05.576Z [err]  configure error 
2020-02-03T13:33:05.576Z [err] gyp
2020-02-03T13:33:05.581Z [err]  
2020-02-03T13:33:05.585Z [err] ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:33:05.593Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:33:05.596Z [err] gyp
2020-02-03T13:33:05.598Z [err]  
2020-02-03T13:33:05.603Z [err] ERR! command "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-03T13:33:05.603Z [err] gyp ERR! cwd
2020-02-03T13:33:05.605Z [err]  /opt/lib/node/node-red/node_modules/snappy
2020-02-03T13:33:05.607Z [err] gyp
2020-02-03T13:33:05.609Z [err]  
2020-02-03T13:33:05.614Z [err] ERR! node -v v8.16.1
2020-02-03T13:33:05.614Z [err] gyp 
2020-02-03T13:33:05.615Z [err] ERR!
2020-02-03T13:33:05.617Z [err]  
2020-02-03T13:33:05.619Z [err] node-gyp -v
2020-02-03T13:33:05.626Z [err]  v3.8.0
2020-02-03T13:33:05.626Z [err] gyp ERR! not ok 
2020-02-03T13:33:05.751Z [out] 
2020-02-03T13:33:05.751Z [out] > leveldown@1.4.6 install /opt/lib/node/node-red/node_modules/leveldown
2020-02-03T13:33:05.751Z [out] > prebuild --install
2020-02-03T13:33:05.751Z [out] 
2020-02-03T13:33:05.826Z [err] sh: 
2020-02-03T13:33:05.828Z [err] prebuild: not found
2020-02-03T13:33:05.831Z [err] 
2020-02-03T13:33:06.050Z [out] 
2020-02-03T13:33:06.050Z [out] > zmq@2.15.3 install /opt/lib/node/node-red/node_modules/zmq
2020-02-03T13:33:06.050Z [out] > node-gyp rebuild
2020-02-03T13:33:06.050Z [out] 
2020-02-03T13:33:19.978Z [err] gyp
2020-02-03T13:33:19.984Z [err]  
2020-02-03T13:33:19.986Z [err] WARN
2020-02-03T13:33:19.988Z [err]  
2020-02-03T13:33:19.990Z [err] install
2020-02-03T13:33:19.995Z [err]  got an error, rolling back install
2020-02-03T13:33:20.018Z [err] gyp
2020-02-03T13:33:20.020Z [err]  
2020-02-03T13:33:20.022Z [err] ERR!
2020-02-03T13:33:20.025Z [err]  
2020-02-03T13:33:20.026Z [err] configure error
2020-02-03T13:33:20.033Z [err]  
2020-02-03T13:33:20.033Z [err] gyp ERR! stack Error: EROFS: read-only file system, mkdir '/.node-gyp'
2020-02-03T13:33:20.043Z [err] gyp ERR! System Linux 4.9-ndm-4
2020-02-03T13:33:20.043Z [err] gyp ERR!
2020-02-03T13:33:20.046Z [err]  
2020-02-03T13:33:20.048Z [err] command
2020-02-03T13:33:20.050Z [err]  "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-03T13:33:20.053Z [err] gyp ERR! 
2020-02-03T13:33:20.055Z [err] cwd
2020-02-03T13:33:20.059Z [err]  /opt/lib/node/node-red/node_modules/zmq
2020-02-03T13:33:20.059Z [err] gyp ERR! node -v
2020-02-03T13:33:20.061Z [err]  v8.16.1
2020-02-03T13:33:20.063Z [err] gyp
2020-02-03T13:33:20.071Z [err]  ERR! node-gyp -v v3.8.0
2020-02-03T13:33:20.071Z [err] gyp ERR! not ok 
2020-02-03T13:34:11.858Z [err] npm
2020-02-03T13:34:11.861Z [err]  
2020-02-03T13:34:11.863Z [err] WARN
2020-02-03T13:34:11.865Z [err]  ws@7.2.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
2020-02-03T13:34:11.869Z [err] npm
2020-02-03T13:34:11.875Z [err]  WARN ws@7.2.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
2020-02-03T13:34:11.879Z [err] npm
2020-02-03T13:34:11.881Z [err]  
2020-02-03T13:34:11.882Z [err] WARN
2020-02-03T13:34:11.887Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node_modules/fs-ext):
2020-02-03T13:34:11.887Z [err] npm WARN
2020-02-03T13:34:11.889Z [err]  
2020-02-03T13:34:11.891Z [err] optional
2020-02-03T13:34:11.898Z [err]  SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: `node-gyp configure build`
2020-02-03T13:34:11.898Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-03T13:34:11.906Z [err] npm 
2020-02-03T13:34:11.908Z [err] WARN
2020-02-03T13:34:11.918Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules/snappy):
2020-02-03T13:34:11.918Z [err] npm WARN 
2020-02-03T13:34:11.923Z [err] optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install: `node-gyp rebuild`
2020-02-03T13:34:11.923Z [err] npm WARN optional
2020-02-03T13:34:11.925Z [err]  SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-03T13:34:11.928Z [err] npm
2020-02-03T13:34:11.930Z [err]  
2020-02-03T13:34:11.932Z [err] WARN
2020-02-03T13:34:11.939Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: leveldown@1.4.6 (node_modules/leveldown):
2020-02-03T13:34:11.939Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: leveldown@1.4.6 install: `prebuild --install`
2020-02-03T13:34:11.939Z [err] npm WARN 
2020-02-03T13:34:11.941Z [err] optional
2020-02-03T13:34:11.943Z [err]  SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
2020-02-03T13:34:11.946Z [err] npm
2020-02-03T13:34:11.948Z [err]  
2020-02-03T13:34:11.955Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 (node_modules/zmq):
2020-02-03T13:34:11.955Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 install: `node-gyp rebuild`
2020-02-03T13:34:11.955Z [err] npm WARN
2020-02-03T13:34:11.957Z [err]  
2020-02-03T13:34:11.959Z [err] optional
2020-02-03T13:34:11.961Z [err]  SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-03T13:34:11.965Z [err] 
2020-02-03T13:34:12.020Z [out] + node-red-contrib-mqtt-broker@0.2.4
2020-02-03T13:34:12.020Z [out] added 211 packages from 282 contributors in 677.636s
2020-02-03T13:34:12.351Z rc=0

 

желательно этот:

глянуть )))

Тут другая проблема - не прав на запись..

 

Скриншот 04-02-2020 083225.jpg

  • 2 недели спустя...
Опубликовано
Только что, Lstt сказал:

Есть шанс побороть проблему с правами?

Да. Началось "межсезонье" после синхронизации с owrt... "будем посмотреть". Пример выбрали не самый удачный (mqtt), готовьтесь к нативной компиляции. 

Опубликовано
3 минуты назад, TheBB сказал:

Да. Началось "межсезонье" после синхронизации с owrt... "будем посмотреть". Пример выбрали не самый удачный (mqtt), готовьтесь к нативной компиляции. 

Ясно..ну честно говоря, в моем личном случае - это именно основное, ради которого и хочется поставить пакеты (основа автоматизации)..

Опубликовано
BusyBox v1.31.1 () built-in shell (ash)

~ # opkg install http://bin.entware.net/mipselsf-k3.4/keenetic/test/node-red_1.0.3-2_mipsel-3.4.ipk
...
~ # 
~ # npm config set editor mcedit -g
~ # npm config set editor mcedit
~ # npm config set cache /opt/root/.npm -g
~ # npm config set cache /opt/root/.npm
~ # 
~ # reboot

редактор по желанию vi/nano/mcedit/... (vi - по умолчанию)

после перезагрузки:

Скрытый текст

-----------------------------------------------------------
2020-02-15T18:58:04.419Z Install : node-red-node-tail 0.1.1

2020-02-15T18:58:03.641Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-node-tail@0.1.1
2020-02-15T18:59:31.580Z [err] npm
2020-02-15T18:59:31.583Z [err]  notice created a lockfile as package-lock.json. You should commit this file.
2020-02-15T18:59:31.600Z [out] + node-red-node-tail@0.1.1
2020-02-15T18:59:31.600Z [out] updated 1 package in 75.312s
2020-02-15T18:59:31.663Z rc=0

-----------------------------------------------------------
2020-02-15T19:00:53.404Z Install : node-red-contrib-mqtt-broker 0.2.4

2020-02-15T19:00:52.560Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-mqtt-broker@0.2.4
2020-02-15T19:02:03.315Z [err] npm
2020-02-15T19:02:03.317Z [err]  WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher
2020-02-15T19:02:10.012Z [err] npm
2020-02-15T19:02:10.014Z [err]  WARN deprecated
2020-02-15T19:02:10.014Z [err]  node-uuid@1.4.8: Use uuid module instead
2020-02-15T19:05:54.185Z [out] 
2020-02-15T19:05:54.185Z [out] > fs-ext@0.5.0 install /opt/lib/node_modules/node-red/node_modules/fs-ext
2020-02-15T19:05:54.185Z [out] > node-gyp configure build
2020-02-15T19:05:54.185Z [out] 
2020-02-15T19:06:02.028Z [err] gyp
2020-02-15T19:06:02.037Z [err]  
2020-02-15T19:06:02.038Z [err] ERR!
2020-02-15T19:06:02.039Z [err]  configure error
2020-02-15T19:06:02.040Z [err]  
2020-02-15T19:06:02.043Z [err] gyp
2020-02-15T19:06:02.044Z [err]  ERR! 
2020-02-15T19:06:02.045Z [err] stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
2020-02-15T19:06:02.045Z [err] gyp 
2020-02-15T19:06:02.046Z [err] ERR! stack     at PythonFinder.failNoPython (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)
2020-02-15T19:06:02.047Z [err] gyp ERR!
2020-02-15T19:06:02.047Z [err]  stack     at PythonFinder.<anonymous> (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
2020-02-15T19:06:02.047Z [err] gyp
2020-02-15T19:06:02.048Z [err]  ERR! stack
2020-02-15T19:06:02.049Z [err]      at F (/opt/lib/node_modules/npm/node_modules/which/which.js:68:16)
2020-02-15T19:06:02.049Z [err] gyp 
2020-02-15T19:06:02.050Z [err] ERR! stack     at E (/opt/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-02-15T19:06:02.051Z [err] gyp ERR! 
2020-02-15T19:06:02.052Z [err] stack     at /opt/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-02-15T19:06:02.052Z [err] gyp 
2020-02-15T19:06:02.053Z [err] ERR! stack     at /opt/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-02-15T19:06:02.054Z [err] gyp ERR!
2020-02-15T19:06:02.055Z [err]  stack     at /opt/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-02-15T19:06:02.055Z [err] gyp
2020-02-15T19:06:02.056Z [err]  ERR! stack
2020-02-15T19:06:02.057Z [err]      at FSReqWrap.oncomplete (fs.js:152:21)
2020-02-15T19:06:02.058Z [err] gyp
2020-02-15T19:06:02.059Z [err]  ERR! System
2020-02-15T19:06:02.060Z [err]  Linux 4.9-ndm-4
2020-02-15T19:06:02.061Z [err] gyp
2020-02-15T19:06:02.062Z [err]  ERR! command
2020-02-15T19:06:02.063Z [err]  "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
2020-02-15T19:06:02.063Z [err] gyp
2020-02-15T19:06:02.064Z [err]  ERR! cwd /opt/lib/node_modules/node-red/node_modules/fs-ext
2020-02-15T19:06:02.065Z [err] gyp 
2020-02-15T19:06:02.066Z [err] ERR! node -v v8.16.1
2020-02-15T19:06:02.067Z [err] gyp ERR!
2020-02-15T19:06:02.068Z [err]  node-gyp -v v3.8.0
2020-02-15T19:06:02.069Z [err] gyp ERR!
2020-02-15T19:06:02.070Z [err]  not ok 
2020-02-15T19:06:02.459Z [out] 
2020-02-15T19:06:02.459Z [out] > kerberos@0.0.24 install /opt/lib/node_modules/node-red/node_modules/kerberos
2020-02-15T19:06:02.459Z [out] > (node-gyp rebuild) || (exit 0)
2020-02-15T19:06:02.459Z [out] 
2020-02-15T19:06:09.524Z [err] gyp
2020-02-15T19:06:09.527Z [err]  
2020-02-15T19:06:09.528Z [err] ERR! 
2020-02-15T19:06:09.529Z [err] configure error 
2020-02-15T19:06:09.533Z [err] gyp
2020-02-15T19:06:09.534Z [err]  ERR! 
2020-02-15T19:06:09.535Z [err] stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
2020-02-15T19:06:09.535Z [err] gyp
2020-02-15T19:06:09.536Z [err]  ERR! stack
2020-02-15T19:06:09.536Z [err]      at PythonFinder.failNoPython (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)
2020-02-15T19:06:09.536Z [err] gyp ERR!
2020-02-15T19:06:09.539Z [err]  stack     at PythonFinder.<anonymous> (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
2020-02-15T19:06:09.539Z [err] gyp ERR! stack     at F (/opt/lib/node_modules/npm/node_modules/which/which.js:68:16)
2020-02-15T19:06:09.539Z [err] gyp 
2020-02-15T19:06:09.541Z [err] ERR! stack     at E (/opt/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-02-15T19:06:09.541Z [err] gyp ERR! 
2020-02-15T19:06:09.542Z [err] stack     at /opt/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-02-15T19:06:09.542Z [err] gyp 
2020-02-15T19:06:09.543Z [err] ERR! stack     at /opt/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-02-15T19:06:09.544Z [err] gyp ERR! 
2020-02-15T19:06:09.545Z [err] stack     at /opt/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-02-15T19:06:09.545Z [err] gyp 
2020-02-15T19:06:09.546Z [err] ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
2020-02-15T19:06:09.548Z [err] gyp
2020-02-15T19:06:09.549Z [err]  ERR! System
2020-02-15T19:06:09.550Z [err]  Linux 4.9-ndm-4
2020-02-15T19:06:09.551Z [err] gyp
2020-02-15T19:06:09.552Z [err]  ERR! command
2020-02-15T19:06:09.553Z [err]  "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-15T19:06:09.554Z [err] gyp ERR! 
2020-02-15T19:06:09.555Z [err] cwd /opt/lib/node_modules/node-red/node_modules/kerberos
2020-02-15T19:06:09.555Z [err] gyp
2020-02-15T19:06:09.556Z [err]  ERR! 
2020-02-15T19:06:09.557Z [err] node -v v8.16.1
2020-02-15T19:06:09.557Z [err] gyp
2020-02-15T19:06:09.558Z [err]  ERR! node-gyp -v
2020-02-15T19:06:09.559Z [err]  v3.8.0
2020-02-15T19:06:09.559Z [err] gyp 
2020-02-15T19:06:09.560Z [err] ERR! not ok 
2020-02-15T19:06:11.010Z [out] 
2020-02-15T19:06:11.010Z [out] > snappy@5.0.5 install /opt/lib/node_modules/node-red/node_modules/snappy
2020-02-15T19:06:11.010Z [out] > node-gyp rebuild
2020-02-15T19:06:11.010Z [out] 
2020-02-15T19:06:17.893Z [err] gyp
2020-02-15T19:06:17.896Z [err]  
2020-02-15T19:06:17.898Z [err] ERR! 
2020-02-15T19:06:17.899Z [err] configure error 
2020-02-15T19:06:17.908Z [err] gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
2020-02-15T19:06:17.908Z [err] gyp ERR! stack     at PythonFinder.failNoPython (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)
2020-02-15T19:06:17.908Z [err] gyp ERR!
2020-02-15T19:06:17.910Z [err]  stack     at PythonFinder.<anonymous> (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
2020-02-15T19:06:17.910Z [err] gyp
2020-02-15T19:06:17.911Z [err]  ERR! stack
2020-02-15T19:06:17.912Z [err]      at F (/opt/lib/node_modules/npm/node_modules/which/which.js:68:16)
2020-02-15T19:06:17.912Z [err] gyp 
2020-02-15T19:06:17.913Z [err] ERR! stack     at E (/opt/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-02-15T19:06:17.914Z [err] gyp ERR!
2020-02-15T19:06:17.915Z [err]  stack     at /opt/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-02-15T19:06:17.915Z [err] gyp
2020-02-15T19:06:17.917Z [err]  ERR! 
2020-02-15T19:06:17.918Z [err] stack     at /opt/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-02-15T19:06:17.918Z [err] gyp ERR!
2020-02-15T19:06:17.920Z [err]  stack     at /opt/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-02-15T19:06:17.921Z [err] gyp ERR! 
2020-02-15T19:06:17.922Z [err] stack     at FSReqWrap.oncomplete (fs.js:152:21)
2020-02-15T19:06:17.924Z [err] gyp
2020-02-15T19:06:17.926Z [err]  ERR! System
2020-02-15T19:06:17.927Z [err]  Linux 4.9-ndm-4
2020-02-15T19:06:17.927Z [err] gyp
2020-02-15T19:06:17.927Z [err]  ERR! command
2020-02-15T19:06:17.928Z [err]  "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-15T19:06:17.929Z [err] gyp ERR! 
2020-02-15T19:06:17.930Z [err] cwd /opt/lib/node_modules/node-red/node_modules/snappy
2020-02-15T19:06:17.930Z [err] gyp
2020-02-15T19:06:17.931Z [err]  ERR! 
2020-02-15T19:06:17.932Z [err] node -v v8.16.1
2020-02-15T19:06:17.932Z [err] gyp
2020-02-15T19:06:17.933Z [err]  ERR! node-gyp -v
2020-02-15T19:06:17.935Z [err]  v3.8.0
2020-02-15T19:06:17.935Z [err] gyp ERR!
2020-02-15T19:06:17.936Z [err]  not ok 
2020-02-15T19:06:18.017Z [out] 
2020-02-15T19:06:18.017Z [out] > leveldown@1.4.6 install /opt/lib/node_modules/node-red/node_modules/leveldown
2020-02-15T19:06:18.017Z [out] > prebuild --install
2020-02-15T19:06:18.017Z [out] 
2020-02-15T19:06:18.067Z [err] sh: prebuild: not found
2020-02-15T19:06:18.188Z [out] 
2020-02-15T19:06:18.188Z [out] > zmq@2.15.3 install /opt/lib/node_modules/node-red/node_modules/zmq
2020-02-15T19:06:18.188Z [out] > node-gyp rebuild
2020-02-15T19:06:18.188Z [out] 
2020-02-15T19:06:25.009Z [err] gyp
2020-02-15T19:06:25.013Z [err]  
2020-02-15T19:06:25.014Z [err] ERR! 
2020-02-15T19:06:25.015Z [err] configure error 
2020-02-15T19:06:25.019Z [err] gyp
2020-02-15T19:06:25.021Z [err]  ERR! 
2020-02-15T19:06:25.022Z [err] stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
2020-02-15T19:06:25.022Z [err] gyp 
2020-02-15T19:06:25.023Z [err] ERR! stack     at PythonFinder.failNoPython (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)
2020-02-15T19:06:25.024Z [err] gyp ERR!
2020-02-15T19:06:25.025Z [err]  stack     at PythonFinder.<anonymous> (/opt/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
2020-02-15T19:06:25.027Z [err] gyp ERR! 
2020-02-15T19:06:25.028Z [err] stack     at F (/opt/lib/node_modules/npm/node_modules/which/which.js:68:16)
2020-02-15T19:06:25.028Z [err] gyp
2020-02-15T19:06:25.029Z [err]  ERR! stack
2020-02-15T19:06:25.030Z [err]      at E (/opt/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-02-15T19:06:25.030Z [err] gyp 
2020-02-15T19:06:25.031Z [err] ERR! stack     at /opt/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-02-15T19:06:25.033Z [err] gyp ERR! 
2020-02-15T19:06:25.034Z [err] stack     at /opt/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-02-15T19:06:25.034Z [err] gyp
2020-02-15T19:06:25.035Z [err]  ERR! 
2020-02-15T19:06:25.036Z [err] stack     at /opt/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-02-15T19:06:25.036Z [err] gyp 
2020-02-15T19:06:25.037Z [err] ERR! stack
2020-02-15T19:06:25.038Z [err]      at FSReqWrap.oncomplete (fs.js:152:21)
2020-02-15T19:06:25.039Z [err] gyp
2020-02-15T19:06:25.040Z [err]  ERR! System
2020-02-15T19:06:25.041Z [err]  Linux 4.9-ndm-4
2020-02-15T19:06:25.042Z [err] gyp
2020-02-15T19:06:25.043Z [err]  ERR! command
2020-02-15T19:06:25.044Z [err]  "/opt/bin/node" "/opt/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-15T19:06:25.045Z [err] gyp ERR! 
2020-02-15T19:06:25.046Z [err] cwd /opt/lib/node_modules/node-red/node_modules/zmq
2020-02-15T19:06:25.047Z [err] gyp ERR! 
2020-02-15T19:06:25.048Z [err] node -v v8.16.1
2020-02-15T19:06:25.048Z [err] gyp
2020-02-15T19:06:25.048Z [err]  ERR! node-gyp -v
2020-02-15T19:06:25.049Z [err]  v3.8.0
2020-02-15T19:06:25.049Z [err] gyp
2020-02-15T19:06:25.050Z [err]  ERR! not ok
2020-02-15T19:06:25.051Z [err]  
2020-02-15T19:06:57.218Z [err] npm
2020-02-15T19:06:57.219Z [err]  WARN 
2020-02-15T19:06:57.221Z [err] optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node_modules/fs-ext):
2020-02-15T19:06:57.221Z [err] npm
2020-02-15T19:06:57.222Z [err]  WARN 
2020-02-15T19:06:57.223Z [err] optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: `node-gyp configure build`
2020-02-15T19:06:57.223Z [err] npm
2020-02-15T19:06:57.224Z [err]  WARN 
2020-02-15T19:06:57.226Z [err] optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-15T19:06:57.228Z [err] npm
2020-02-15T19:06:57.229Z [err]  WARN 
2020-02-15T19:06:57.230Z [err] optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules/snappy):
2020-02-15T19:06:57.231Z [err] npm WARN
2020-02-15T19:06:57.232Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install: `node-gyp rebuild`
2020-02-15T19:06:57.234Z [err] npm WARN
2020-02-15T19:06:57.235Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-15T19:06:57.237Z [err] npm
2020-02-15T19:06:57.238Z [err]  WARN optional
2020-02-15T19:06:57.239Z [err]  SKIPPING OPTIONAL DEPENDENCY: leveldown@1.4.6 (node_modules/leveldown):
2020-02-15T19:06:57.239Z [err] npm 
2020-02-15T19:06:57.242Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: leveldown@1.4.6 install: `prebuild --install`
2020-02-15T19:06:57.242Z [err] npm WARN 
2020-02-15T19:06:57.243Z [err] optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
2020-02-15T19:06:57.244Z [err] npm 
2020-02-15T19:06:57.244Z [err] WARN optional
2020-02-15T19:06:57.246Z [err]  SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 (node_modules/zmq):
2020-02-15T19:06:57.246Z [err] npm 
2020-02-15T19:06:57.247Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: zmq@2.15.3 install: `node-gyp rebuild`
2020-02-15T19:06:57.247Z [err] npm WARN
2020-02-15T19:06:57.248Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2020-02-15T19:06:57.250Z [err] 
2020-02-15T19:06:57.287Z [out] + node-red-contrib-mqtt-broker@0.2.4
2020-02-15T19:06:57.287Z [out] added 211 packages from 282 contributors in 352.917s
2020-02-15T19:06:57.382Z rc=0

 

Опубликовано (изменено)
opkg install bash binutils cmake gawk gcc git make python sed
wget -qO- http://bin.entware.net/mipselsf-k3.4/include/include.tar.gz | tar xzv -C /opt/include
echo 'export CC="gcc"' >> /opt/etc/profile 
echo 'export CXX="g++"' >> /opt/etc/profile 
echo 'export CFLAGS="-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float "' >> /opt/etc/profile 
echo 'export CXXFLAGS="-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float "' >> /opt/etc/profile 
echo 'export CPPFLAGS="-I/opt/include"' >> /opt/etc/profile 
echo 'export LDFLAGS="-Wl,-rpath=/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -L/opt/lib"' >> /opt/etc/profile 

`mcedit /opt/etc/init.d/S99node-red` немного подправим

Цитата

#!/bin/sh

. /opt/etc/profile

export HOME="/opt/root"
export PWD="/opt"
export SHELL="/opt/bin/bash"

LOG=/opt/var/log/node-red.log

...

было

Скрытый текст
Цитата
...
Фев 16 15:41:05
ndm
Opkg::Manager: /opt/etc/init.d/rc.unslung: timezone=Europe/Moscow USER=root LD_LIBRARY_PATH= SHLVL=2 HOME=/ NDM_MOUNT_ROOT=/tmp/mnt LD_BIND_NOW=1 TERM=linux PATH=/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=UTF-8 SHELL=/bin/sh PWD=/.
Фев 16 15:41:05
ndm
Opkg::Manager: /opt/etc/init.d/rc.unslung: HOME='/' HOSTNAME='KUII' IFS=' ' LANG='UTF-8' LD_BIND_NOW='1' LD_LIBRARY_PATH='' LINENO='' NDM_MOUNT_ROOT='/tmp/mnt' OPTIND='1' PATH='/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:/usr/sbin:/usr/bin:/sbin:/bin' PPID='20130' PS1='\w \$ ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/sh' SHLVL='2' TERM='linux' USER='root' timezone='Europe/Moscow'.
...

 

стало

Скрытый текст
Цитата
...
Фев 16 15:41:05
ndm
Opkg::Manager: /opt/etc/init.d/rc.unslung: timezone=Europe/Moscow USER=root CXXFLAGS=-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float LD_LIBRARY_PATH= SHLVL=2 HOME=/opt/root TERMINFO=/opt/share/terminfo NDM_MOUNT_ROOT=/tmp/mnt LDFLAGS=-Wl,-rpath=/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -L/opt/lib LD_BIND_NOW=1 TEMP=/opt/tmp TERM=xterm PATH=/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:/usr/sbin:/usr/bin:/sbin:/bin CFLAGS=-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float LANG=en_US.UTF-8 TMP=/opt/tmp CPPFLAGS=-I/opt/include SHELL=/opt/bin/bash CXX=g++ PWD=/opt LC_ALL= CC=gcc.
Фев 16 15:41:05
ndm
Opkg::Manager: /opt/etc/init.d/rc.unslung: CC='gcc' CFLAGS='-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float ' CPPFLAGS='-I/opt/include' CXX='g++' CXXFLAGS='-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float ' HOME='/opt/root' HOSTNAME='KUII' IFS=' ' LANG='en_US.UTF-8' LC_ALL='' LDFLAGS='-Wl,-rpath=/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -L/opt/lib' LD_BIND_NOW='1' LD_LIBRARY_PATH='' LINENO='' NDM_MOUNT_ROOT='/tmp/mnt' OPTIND='1' PATH='/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:/usr/sbin:/usr/bin:/sbin:/bin' PPID='20130' PS1='\w \$ ' PS2='> ' PS4='+ ' PWD='/opt' SHELL='/opt/bin/bash' SHLVL='2' TEMP='/opt/tmp' TERM='xterm' TERMINFO='/opt/share/terminfo' TMP='/opt/tmp' USER='root' timezone='Europe/Moscow'.
...

 

 

Изменено пользователем TheBB
Опубликовано (изменено)

Если соблюдать описанную Вами последовательность, то да, всё работает. Проверено на Omni и Extra! Спасибо огромное! Установка различных нодов, длится, конечно не мало 5-20 минут..

Скриншот 18-02-2020 211736.jpg

P.S. - не обновляйте npm до крайней версии - NodeRed работает некорректно!

Изменено пользователем Lstt

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

  • Последние посетители   0 пользователей онлайн

    • Ни одного зарегистрированного пользователя не просматривает данную страницу
×
×
  • Создать...

Важная информация

На этом сайте используются файлы cookie. Нажимая "Я принимаю" или продолжая просмотр сайта, вы разрешаете их использование: Политика конфиденциальности.