我正在从 移动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/[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
我想我需要chmod +x
对 node.js 进行一些修改,但是它是什么文件?
此外,我的package.json
线路"version: 1.4"
和xfc
所有内容都是正确的。
答案1
这是一个JPM 中的错误。
jpm
您可以使用以下命令运行您的附加组件:
jpm run -b $(which firefox)
$(which firefox)
获取你的 Firefox 二进制文件的路径。