gpt4 book ai didi

jquery - Etherpad Lite,在 Linux 上运行

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:58:16 25 4
gpt4 key购买 nike

我几天前安装了 Xubuntu。现在我尝试在本地服务器 (127.0.0.1:9001) 上运行 etherpad-lite。按照 [github] 中描述的步骤操作后:( https://github.com/ether/etherpad-lite )。

在 shell 中运行它后,我收到以下消息:

    xyz@local: ~etherpad-lite$ bin/run.sh:
Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
npm WARN package.json async-stacktrace@0.0.2 No repository field.
npm WARN package.json channels@0.0.4 No repository field.
npm WARN package.json ejs@0.6.1 No repository field.
npm WARN package.json formidable@1.0.9 No repository field.
npm WARN package.json jsdom-nocontextifiy@0.2.10 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json tinycon@0.0.1 No repository field.
Ensure jQuery is downloaded and up to date...
Clear minfified cache...
ensure custom css/js files are created...
start...
xyz@local: ~etherpad-lite$ ....

浏览器说:无法连接 Firefox 无法与 127.0.0.1:9001 的服务器建立连接。通过谷歌后,我发现了解决该问题的不同方法。我不确定我的 jQuery 是否正常工作?下载失败,shell 告诉我已经安装了一个库。好吧,我没有设法删除 etherpad(Linux 的新手),而是尝试了以下操作:

Copy the file: /src/static/css/pad.css to /node_modules/ep_oae/static/css/pad.css
configure the file settings.json.template:
Change: "socketTransportProtocols" : … to "socketTransportProtocols" : ["websocket", "xhr-polling", "jsonp-polling", "htmlfile"],
and "defaultPadText": …. to "defaultPadText": " "

Finally delete the following part of code in the bin/run.sh file:
#Stop the script if its started as root
if [ "$(id -u)" -eq 0 ] && [ $ignoreRoot -eq 0 ]; then
echo "You shouldn't start Etherpad-Lite as root!"
echo "Please type 'Etherpad Lite rocks my socks' or supply the
'--root' argument if you still want to start it as root"
read rocks
if [ ! $rocks = "Etherpad Lite rocks my socks" ]
then
echo "Your input was incorrect"
exit 1 fi

fi

Start etherpad-lite with the command: bin/run.sh

这也没有成功! -.-

现在我不确定如何处理它,我真的需要为一个项目紧急使用 etherpad,所以我将非常感谢任何解决方案。

提前致谢!

最佳答案

与节点包(业余分组 radio 节点程序)存在命名冲突,nodejs 二进制文件已从 node 重命名为 nodejs。您需要将/usr/bin/node 符号链接(symbolic link)到/usr/bin/nodejs,或者您可以卸载业余分组 radio 节点程序以避免该冲突。

解决方法:删除节点包:

apt-get remove node

然后:

cd /usr/bin

ln -s nodejs node

然后运行:在 etherpad-lite 目录中

bin/run.sh

它有效... =)

关于jquery - Etherpad Lite,在 Linux 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23459842/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com