Sudo apt-get install nodejs
でnode.jsをインストールした後、cfx
からjpm
に移行しています。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/[email protected] (504ms)
JPM [info] Removing fallbacks if they were necessary..
Created XPI at /tmp/[email protected]
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
Node.jsのファイルにchmod +x
を作成する必要があると思いますが、それは何ですか?
また、私のpackage.json
には"version: 1.4"
行があり、xfc
を使用するとすべてが正しくなりました。
これは JPMのバグ です。
次のコマンドを使用して、jpm
でアドオンを実行できます。
_jpm run -b $(which firefox)
_
$(which firefox)
は、Firefoxバイナリへのパスを取得します。