Etherpad-lite: 无法安装任何插件:“没有可用的有效版本”

创建于 2018-05-18  ·  9评论  ·  资料来源: ether/etherpad-lite

你好,
我在 Debian 服务器上有一个可用的 etherpad-lite 实例。
当我想安装任何插件( npm install ep_adminpads作为 root)时,我

npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for ep_etherpad-lite

我对所有插件都有同样的问题!
我使用 node v9.10.1 npm 6.0.1 和 git up-to-date etherpad-lite 1.6.6 (6dd172d)
服务器位于代理之后,但代理是在环境变量中定义的。

最有用的评论

对我来说同样的问题。
为了测试我从 1.7.0 回滚到 1.6.6,这是我使用的程序:

git checkout .
git checkout tags/1.6.6
rm -rf ./src/node_modules
rm -rf ./node_modules
./bin/installDeps.sh
npm install ep_adminpads

最后一个命令出现错误。
我用这个解决它:

npm cache clean --force #Not sure if this help
rm -rf ./src/node_modules
rm -rf ./node_modules
rm package-lock.json
rm src/package-lock.json
./bin/installDeps.sh
npm install ep_adminpads

所有9条评论

@ljoets ,当使用直接网络连接插件安装似乎按预期工作(etherpad 1.6.6-devel c4918efc1bb2, node 10.6.0 )。

你检查你的 npm 配置了吗? npm不支持标准的http_proxy环境变量,但有自己的配置机制:

npm config set proxy http://[user:password@]yourproxy.org:8080
npm config set https-proxy http://[user:password@]yourproxy.org:8080

你可以看看http://wil.boayue.com/blog/2013/06/14/using-npm-behind-a-proxy/

最后,请注意,给定的语法仅适用于未经身份验证或基本 http 身份验证的情况。 如果您的公司代理需要 NTLM 身份验证,您可能需要使用cntlm

我倾向于将其关闭为特定于安装的。 @ljoets ,你的问题解决了吗?

你好,
谢谢你的想法。
你应该是对的,但我不能在九月之前测试它:-(

我有同样的问题,没有配置代理。 我今天早上更新到 1.7.0 时出现问题。

@gllmhyt

插件安装正在我的系统上运行,但我们不能排除一些错误。
让我向您展示它是如何工作的,也许您可​​以发现一些差异。

  1. BASEDIR是包含 Etherpad 克隆的目录(其中包含.gitbindocsrc

  2. 我在 Ubuntu 18.04 上运行(应该没有关系)。
    可以肯定的是,我手动安装了最低支持的 Node 版本(节点:6.9.0,npm:3.10.8)。
    较新的节点版本可以(并且更好)。
    侧节点:手动安装任何 Node 版本,只需下载官方 tar.xz 并将三个符号链接到nodenpmnpx到位于你的道路。 或者只是使用包。

  3. 我从一个干净的安装开始( rm -rf BASEDIR/node_modules和我们最终将讨论的其他事情。这是无害的,但不要使用它)

  4. 第一次开始,没有插件:

    muxator<strong i="30">@host</strong>:BASEDIR$ bin/run.sh 
    Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
    Ensure jQuery is downloaded and up to date...
    Clearing minified cache...
    Ensure custom css/js files are created...
    Started Etherpad...
    [2018-08-17 17:54:00.963] [WARN] stats - Enabling a polyfill to run on this Node version (v6.9.0). Next Etherpad version will remove support for Node version < 8.9.0. Please update your runtime.
    [2018-08-17 17:54:01.200] [DEBUG] console - Running on Node v6.9.0 (minimum required Node version: 6.9.0)
    [2018-08-17 17:54:01.202] [WARN] console - Support for Node v6.9.0 will be removed in Etherpad 1.8.0. Please consider updating at least to Node 8.9.0
    [2018-08-17 17:54:03.340] [INFO] console - Installed plugins: <-- EMPTY PLUGIN LIST
    [...]
    [2018-08-17 17:54:03.348] [INFO] console - Your Etherpad version is 1.7.0 (96ac381afb9e)
    
  5. 让我们通过 npm 从BASEDIR安装ep_adminpads BASEDIR

    muxator<strong i="37">@host</strong>:BASEDIR$ npm install ep_adminpads
    BASEDIR
    └── [email protected] 
    
    npm WARN enoent ENOENT: no such file or directory, open 'BASEDIR/package.json'
    npm WARN etherpad-lite No description
    npm WARN etherpad-lite No repository field.
    npm WARN etherpad-lite No README data
    npm WARN etherpad-lite No license field.
    

    这有点奇怪,但它有效。 然而,它需要变得更加健壮。

  6. 第一次验证: ls -l BASEDIR/node_modules/ (在干净安装中应该只包含指向../src的符号链接),显示新安装的插件:

    muxator<strong i="45">@host</strong>:BASEDIR$ ls -l node_modules/
    total 4
    drwxrwxr-x 1 muxator muxator 174 ago 17 17:54 ep_adminpads   <-- NEW PLUGIN
    lrwxrwxrwx 1 muxator muxator   6 ago 17 17:52 ep_etherpad-lite -> ../src
    
  7. 第二次验证:当我启动 Etherpad 时,日志显示ep_adminpads

    muxator<strong i="51">@host</strong>:BASEDIR$ bin/run.sh 
    Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
    Ensure jQuery is downloaded and up to date...
    Clearing minified cache...
    Ensure custom css/js files are created...
    Started Etherpad...
    [2018-08-17 17:54:41.538] [WARN] stats - Enabling a polyfill to run on this Node version (v6.9.0). Next Etherpad version will remove support for Node version < 8.9.0. Please update your runtime.
    [2018-08-17 17:54:41.777] [DEBUG] console - Running on Node v6.9.0 (minimum required Node version: 6.9.0)
    [2018-08-17 17:54:41.779] [WARN] console - Support for Node v6.9.0 will be removed in Etherpad 1.8.0. Please consider updating at least to Node 8.9.0
    [2018-08-17 17:54:43.893] [INFO] console - Installed plugins: [email protected] <-- PLUGIN APPEARED
    [...]
    [2018-08-17 17:54:43.901] [INFO] console - Your Etherpad version is 1.7.0 (96ac381afb9e)
    

告诉我您是否发现了一些非常不同的东西,以便我们制定解决方案。

注意:我也尝试从网络管理界面安装插件,我会尽快尝试您的步骤,谢谢。

对我来说同样的问题。
为了测试我从 1.7.0 回滚到 1.6.6,这是我使用的程序:

git checkout .
git checkout tags/1.6.6
rm -rf ./src/node_modules
rm -rf ./node_modules
./bin/installDeps.sh
npm install ep_adminpads

最后一个命令出现错误。
我用这个解决它:

npm cache clean --force #Not sure if this help
rm -rf ./src/node_modules
rm -rf ./node_modules
rm package-lock.json
rm src/package-lock.json
./bin/installDeps.sh
npm install ep_adminpads

谢谢@GenJin ,我做了完全相同的(保存设置后使用 git clean )并且它在它之后立即工作!

通过全新安装解决。
关闭。

此页面是否有帮助?
0 / 5 - 0 等级