в том то и загвоздка. с дистром в комплекте есть нод. 6.11.3
пробовал обновить его до крайней - яйши те же, ошибка та же. т.е. по логике ошибка не в нем
пробовал pm2 удалить. через веб морду не дает, через консоль - без проблем.
дальше пробовал установить через fwconsole ma downloadinstall pm2 - загружает, но при установке по сути та же ошибка:
Код: Выделить всё
root@raspbx:~# fwconsole ma downloadinstall pm2
No repos specified, using: [standard,extended] from last GUI settings
Downloading module 'pm2'
Processing pm2
Verifying local module download...Verified
Extracting...Done
Download completed in 18 seconds
Installing/Updating Required Libraries. This may take a while...The following messages are ONLY FOR DEBUGGING. Ignore anything that says 'WARN' or is just a warning
Found npm-cache v0.7.0
Running installation..
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/pm2/node/composer.json does not exist. Skipping install
[npm-cache] [INFO] [npm] config file exists
[npm-cache] [INFO] [npm] cli exists
[npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/pm2/node/package.json: 72e37e0910b4ea542a3fc885a90f5372
[npm-cache] [INFO] [npm] running [npm install]...
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mixin-deep@^1.2.0 (node_modules/base/node_modules/mixin-deep):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Failed to parse json
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No data, empty input at 1:1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ^
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: File: /home/asterisk/.npm/mixin-deep/1.3.1/package/package.json
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: class-utils@^0.3.5 (node_modules/base/node_modules/class-utils):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Failed to parse json
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No data, empty input at 1:1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ^
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: File: /home/asterisk/.npm/class-utils/0.3.6/package/package.json
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: component-emitter@^1.2.1 (node_modules/base/node_modules/component-emitter):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Failed to parse json
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No data, empty input at 1:1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ^
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: File: /home/asterisk/.npm/component-emitter/1.2.1/package/package.json
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: pascalcase@^0.1.1 (node_modules/base/node_modules/pascalcase):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Failed to parse json
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No data, empty input at 1:1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ^
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: File: /home/asterisk/.npm/pascalcase/0.1.1/package/package.json
npm ERR! Linux 4.14.79-v7+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! file /home/asterisk/.npm/cache-base/1.0.1/package/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: /home/asterisk/.npm/cache-base/1.0.1/package/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/admin/modules/pm2/node/npm-debug.log
[npm-cache] [ERROR] [npm] error running npm install
[npm-cache] [ERROR] error installing dependencies
Finished updating libraries!
There was an error installing. Please review the install log. (/var/www/html/admin/modules/pm2/node/logs/install.log)
Unable to install module pm2:
- Failed to run installation scripts
Updating Hooks...Done