node.js + jpm не работает после установки: JPM [ошибка] Ошибка: spawn EACCES

Я переезжаю из cfx в jpm После установки node.js sudo apt-get install nodejs Я установил jpm: npm install jpm -g, Теперь я пытаюсь запустить мой аддон: jpm run -v:

JPM [info] verbose set
JPM [info] Starting jpm run on Yandex translate - from anything to Russian (or from Russian to English)
JPM [info] Checking compatability bootstrap.js and install.rdf for xpi
Validating the manifest
JPM [warning] The `version` entry must be specified, and it should follow semantic
versioning rules. For example, it must be a string containing three
values indicating major, minor, and patch versions. For example:

"1.4.56"
"0.0.1"
"1.0.0rc4"

http://semver.org

JPM [info] Creating fallbacks if they are necessary..
Creating XPI
JPM [info] Creating XPI...
JPM [warning] .jpmignore does not exist, fallback to use default filter rules
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/data
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/LICENSE
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/README.md
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/bootstrap.js
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/extension-yandex-translate.iml
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/index.js
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/install.rdf
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/package.json
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/screenshot-ch-ru-long.png
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/screenshot-ch-ru.png
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/screenshot-en-ru-popup.png
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/screenshot-en-ru.png
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/screenshot-ru-en.png
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/yandex-translate-in-context.xpi
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/screenshot-hover.png
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/data/ico.png
JPM [info] Adding: /home/vitaly/Desktop/my-projects/extension-yandex-translate/data/script.js
JPM [info] XPI created at /tmp/jid1-ac4GNZhbcz2Q0A@jetpack-1.4.xpi (504ms)
JPM [info] Removing fallbacks if they were necessary..
Created XPI at /tmp/jid1-ac4GNZhbcz2Q0A@jetpack-1.4.xpi
JPM [info] Creating a new profile
JPM [info] Using temporary profile at
JPM [info]     /tmp/88631898-23e2-4ff0-9a8c-3d8da026ca6d
JPM [info] Executing Firefox binary: /usr/lib/firefox
JPM [info] Executing Firefox with args: -foreground,-no-remote,-profile,/tmp/88631898-23e2-4ff0-9a8c-3d8da026ca6d
JPM [error] Error: spawn EACCES
JPM [error] Error: spawn EACCES

Я думаю, мне нужно сделать chmod +x к какому-то файлу node.js, но что это за файл?

Также мой package.json есть линия "version: 1.4" и с xfc все было правильно.

1 ответ

Решение

Это ошибка в JPM.

Вы можете запустить свое дополнение с jpm с помощью следующей команды:

jpm run -b $(which firefox)

$(which firefox) получает путь к вашему бинарному файрфоксу.

Другие вопросы по тегам