Closed d4renk closed 2 years ago
提供如下思路。
npm install --production
提供如下思路。
- 尝试安装nodejs。
- clone代码,安装依赖
npm install --production
- 运行 npm run dev
已安装了cross-env,yarn,nodejs,运行报错
- 进到 packages/sharelist-webdav 运行 npm run build 。
- 如果要web界面,还需要回到根目录,运行 npm run dev-web 访问地址是 http://localhost:3000
运行npm run dev-web报错 log
改用yarn执行。yarn dev
以及 yarn dev-web
这就已经成功运行了。
这就已经成功运行了。
可是打开web只有 { "id": "root://", "type": "folder", "driveName": "", "files": [] } 这是缺少依赖吗?
作者抽空写个教程吧,或者和老版本一样,给一个一键脚本,多谢啦
这就已经成功运行了。
目前代码没有为纯node运行做准备,后续完善了再加安装脚本吧。
- 在 sharelist/packages/sharelist 下创建 theme 文件夹
- 进入 sharelist/packages/sharelist-web 执行 yarn build.
- 将 sharelist/packages/sharelist-web/dist目录 复制到 sharelist/packages/sharelist/theme 下,并重命名为 default.
- 在 sharelist 下执行yarn dev 启动
目前代码没有为纯node运行做准备,后续完善了再加安装脚本吧。
2021-10-19-13.46 log 执行第二步的yarn build报错😂
试下,没测(狗头)。
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
echo "+============================================================+"
echo "| ShareList(Next) NetInstaller |"
echo "| |"
echo "| <reruin@gmail.com> |"
echo "|------------------------------------------------------------|"
echo "| https://reruin.net |"
echo "+============================================================+"
echo ""
echo -e "\n| ShareList(Next) is installing ... "
echo -e "|\n| Download ShareList Package ... "
wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1
unzip -q -o sharelist-master.zip -d ./
mv sharelist-master sharelist
rm -f sharelist-master.zip
cd sharelist
echo -e "|\n| Install Dependents ... "
npm install yarn -g >/dev/null 2>&1
npm install pm2 -g >/dev/null 2>&1
yarn install >/dev/null 2>&1
yarn build-web
mkdir -p ./packages/sharelist/theme/default
mkdir -p ./packages/sharelist/plugins
cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default
cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins
cd packages/sharelist
pm2 start app.js --name sharelist-next >/dev/null 2>&1
pm2 save >/dev/null 2>&1
pm2 startup >/dev/null 2>&1
echo -e "|\n| Success: ShareList(next) has been installed\n"
试下,没测(狗头)。
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin echo "+============================================================+" echo "| ShareList(Next) NetInstaller |" echo "| |" echo "| <reruin@gmail.com> |" echo "|------------------------------------------------------------|" echo "| https://reruin.net |" echo "+============================================================+" echo "" echo -e "\n| ShareList(Next) is installing ... " echo -e "|\n| Download ShareList Package ... " wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1 unzip -q -o sharelist-master.zip -d ./ mv sharelist-master sharelist rm -f sharelist-master.zip cd sharelist echo -e "|\n| Install Dependents ... " npm install yarn -g >/dev/null 2>&1 npm install pm2 -g >/dev/null 2>&1 yarn install >/dev/null 2>&1 yarn build-web mkdir -p ./packages/sharelist/theme/default mkdir -p ./packages/sharelist/plugins cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins cd packages/sharelist pm2 start app.js --name sharelist-next >/dev/null 2>&1 pm2 save >/dev/null 2>&1 pm2 startup >/dev/null 2>&1 echo -e "|\n| Success: ShareList(next) has been installed\n"
多谢作者,测试成功,期间有一个错误, “error sharelist-monorepo@: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "10.19.0" 升级一下node,后面就没报错了 测试环境是ubuntu(ARM处理器)
试下,没测(狗头)。
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin echo "+============================================================+" echo "| ShareList(Next) NetInstaller |" echo "| |" echo "| <reruin@gmail.com> |" echo "|------------------------------------------------------------|" echo "| https://reruin.net |" echo "+============================================================+" echo "" echo -e "\n| ShareList(Next) is installing ... " echo -e "|\n| Download ShareList Package ... " wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1 unzip -q -o sharelist-master.zip -d ./ mv sharelist-master sharelist rm -f sharelist-master.zip cd sharelist echo -e "|\n| Install Dependents ... " npm install yarn -g >/dev/null 2>&1 npm install pm2 -g >/dev/null 2>&1 yarn install >/dev/null 2>&1 yarn build-web mkdir -p ./packages/sharelist/theme/default mkdir -p ./packages/sharelist/plugins cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins cd packages/sharelist pm2 start app.js --name sharelist-next >/dev/null 2>&1 pm2 save >/dev/null 2>&1 pm2 startup >/dev/null 2>&1 echo -e "|\n| Success: ShareList(next) has been installed\n"
是termux路径错了吗
- 在 sharelist/packages/sharelist 下创建 theme 文件夹
- 进入 sharelist/packages/sharelist-web 执行 yarn build.
- 将 sharelist/packages/sharelist-web/dist目录 复制到 sharelist/packages/sharelist/theme 下,并重命名为 default.
- 在 sharelist 下执行yarn dev 启动
目前代码没有为纯node运行做准备,后续完善了再加安装脚本吧。
网盘目录下超过500个文件,进入目录会报错,DOCKER版也是报错,错误代码“500”,作者帮忙解决一下,多谢!
试下,没测(狗头)。
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin echo "+============================================================+" echo "| ShareList(Next) NetInstaller |" echo "| |" echo "| <reruin@gmail.com> |" echo "|------------------------------------------------------------|" echo "| https://reruin.net |" echo "+============================================================+" echo "" echo -e "\n| ShareList(Next) is installing ... " echo -e "|\n| Download ShareList Package ... " wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1 unzip -q -o sharelist-master.zip -d ./ mv sharelist-master sharelist rm -f sharelist-master.zip cd sharelist echo -e "|\n| Install Dependents ... " npm install yarn -g >/dev/null 2>&1 npm install pm2 -g >/dev/null 2>&1 yarn install >/dev/null 2>&1 yarn build-web mkdir -p ./packages/sharelist/theme/default mkdir -p ./packages/sharelist/plugins cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins cd packages/sharelist pm2 start app.js --name sharelist-next >/dev/null 2>&1 pm2 save >/dev/null 2>&1 pm2 startup >/dev/null 2>&1 echo -e "|\n| Success: ShareList(next) has been installed\n"
重写了脚本命令路径,没有引导页,这是什么没安装😂?
@d4renk 这是安装好了。点管理进后台,默认密码 sharelist
@d4renk 这是安装好了。点管理进后台,默认密码 sharelist
webav如何挂载😂,webdav代理打开关闭都试了,Mix报错501
@d4renk 后台管理->wevdav路径设置为 /webdav
,注意有斜杠.
@d4renk 后台管理->wevdav路径设置为
/webdav
,注意有斜杠.
账号密码正确,webdav路径已经修改,mix登录还是报501,webdav代理是啥😂
贴一下日志。
贴一下日志。
已重新构建了webadv,yarn dev提示文件未发生更改,yarn dev未报错,webdav仍未正常运行
意外执行一次安装脚本,成功进入webdav,我也不知道为啥😂
需求描述 / Description of the feature
直接運行二進制報錯
实现思路 / Suggested solution
No response
附件 / Additional context
No response