Code Monkey home page Code Monkey logo

Comments (27)

rxliuli avatar rxliuli commented on June 12, 2024

啊,你的 nodejs 版本是多少呢?

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

[waves@waves-pc blog-hexo-example]$ node -v
v18.1.0

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

吾辈发布了 0.8.3,你可以再试试么?

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

我的.joplin-blog.json文件如下:
{
"type": "hexo",
"rootPath": ".",
"baseUrl": "http://localhost:41184",
"token": "xxxxxxxae9c0e42e042a963be8534",
"tag": "blog"
}
[waves@waves-pc blog-hexo-example]$ npm -v
8.5.5
可以试试,但是我用你的那个脚本执行提示的安装版本只显示到0.8.2

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

我的.joplin-blog.json 文件如下: { "type": "hexo", "rootPath": ".", "baseUrl": "http://localhost:41184", "token": "xxxxxxxae9c0e42e042a963be8534", "tag": "blog" } [waves@waves-pc blog-hexo-example]$ npm -v 8.5.5 可以试试,但是我用你的那个脚本执行提示的安装版本只显示到 0.8.2

修改 package.json 中的 0.8.2 => 0.8.3,然后重新运行 yarn && yarn gen

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

好的,我修改了版本后之前的错误消失了,但是他提示了新的错误
yarn gen
yarn run v1.22.18
$ joplin-blog blog
/usr/bin/env: "node\r": 没有那个文件或目录
/usr/bin/env: 使用 -[v]S 以在 shebang 行中传递选项
error Command failed with exit code 127.

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

先直接运行原始 bin.cjs 吧

node ./node_modules/joplin-blog/bin.cjs blog

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

运行之后提示的消息,似乎是链接被拒绝了
waves@waves-pc blog-hexo-example]$ node ./node_modules/joplin-blog/bin.cjs blog
_ _ _ _ _
() ___ _ __ | ()_ __ | |__ | | ___ __ _
| |/ _ | '_ | | | '_ \ ____| ' | |/ _ \ / _| | | (_) | |_) | | | | | |_____| |_) | | (_) | (_| | _/ |\___/| .__/|_|_|_| |_| |_.__/|_|\___/ \__, | |__/ |_| |___/ (node:6295) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time (Usenode --trace-warnings ...` to show where the warning was created)
Failed to test joplin service: TypeError: fetch failed
at Object.processResponse (node:internal/deps/undici/undici:5575:34)
at node:internal/deps/undici/undici:5901:42
at node:internal/process/task_queues:140:7
at AsyncResource.runInAsyncScope (node:async_hooks:202:9)
at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: connect ECONNREFUSED ::1:41184
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 41184
}
}

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

稍等,吾辈装个 docker 用 nodejs 18 + linux 环境跑一下,windows 上 nodejs 16 lts 复现不了

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

麻烦大神了,我的平台是archlinux 您看您这边需要我提供什么信息吗?
uname -a
Linux waves-pc 5.17.5-arch1-1 #1 SMP PREEMPT Wed, 27 Apr 2022 20:56:11 +0000 x86_64 GNU/Linux
[waves@waves-pc blog-hexo-example]$ node -v
v18.1.0
[waves@waves-pc blog-hexo-example]$ npm -v
8.5.5
[waves@waves-pc blog-hexo-example]$ yarn -v
1.22.18
[waves@waves-pc blog-hexo-example]$

如果比较麻烦就算了吧,非常感谢您的帮助,我其实想的是后面可以多平台多个计算机之间可以同步我的笔记,我之前是用的typora+hexo+github这样弄的,不过我的win上的typora过期了,所以找到了这个joplin这个软件,如果十分麻烦就算了,还是十分感谢您的帮助

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

有一个信息我不知道有没有用?
我直接在浏览器中访问http://localhost:41184/
他返回的是
11.pdf

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

只要访问这个能响应 JoplinClipperServer 就代表服务正常

http://localhost:41184/ping

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

是的,我测试过了,可以响应这个的。

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

发布了 0.8.5,测试在 ubuntu docker image + nodejs v18.1.0 可用,你可以更新再试一次么?

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

发布了 0.8.5,测试在 ubuntu docker image + nodejs v18.1.0 可用,你可以更新再试一次么?

我再次从你的github上下载了你的源码,然后单独拿出你的blog-hexo-example 我执行 yarn && yarn gen 依旧报出下面的错误
我准备换个joplin版本试试 我目前的版本是2.7.15 我又仔细看了你要求是要2.8以上我准备去找个新的joplin
(node:3975) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
Failed to test joplin service: TypeError: fetch failed
at Object.processResponse (node:internal/deps/undici/undici:5575:34)
at node:internal/deps/undici/undici:5901:42
at node:internal/process/task_queues:140:7
at AsyncResource.runInAsyncScope (node:async_hooks:202:9)
at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: connect ECONNREFUSED ::1:41184
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 41184
}
}
Done in 0.60s.

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

试试访问以下 url 能否获取到标签为 blog 的笔记列表(替换 token/port 为你的)

http://localhost:27583/search?fields=id,title,body,user_created_time,user_updated_time&limit=100&page=1&query=tag%3Ablog&token=5bcfa49330788dd68efea27a0a133d2df24df68c3fd78731eaa9914ef34811a34a782233025ed8a651677ec303de6a04e54b57a27d48898ff043fd812d8e0b31&type=note

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

我测试了一下这样是可以获得我的笔记列表的,我截图了放在了pdf里
Uploading 11.pdf…

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

我测试了一下这样是可以获得我的笔记列表的,我截图了放在了 pdf 里 Uploading 11.pdf…

没有上传完

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

11.pdf

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

可以确定是这一行抛出的错误,但为什么会抛出错误就很迷惑。。。

await noteApi.list({ fields: ['id'], limit: 1 })

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

可以使用 chrome 远程桌面连接到你的 pc 调试一下么?如果可以请发送 code 至邮箱 [email protected]

使用参考:https://remotedesktop.google.com/support

image

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

邮件收到了吗?
我发了两次都被当作垃圾邮件退回来了

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

362167700524

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

099141653572 刚才电脑死机了

from joplin-utils.

rxliuli avatar rxliuli commented on June 12, 2024

后续需要解决 nodejs 18 的 fetch 存在兼容问题

from joplin-utils.

Taurus-ZSZ avatar Taurus-ZSZ commented on June 12, 2024

后续需要解决 nodejs 18 的 fetch 存在兼容问题

谢谢啦,麻烦了你一整天

from joplin-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.