Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find /usr/share/joplin/node_modules/joplin/app/ #129

Closed
CTA5816 opened this issue Jan 19, 2024 · 5 comments
Closed

Cannot find /usr/share/joplin/node_modules/joplin/app/ #129

CTA5816 opened this issue Jan 19, 2024 · 5 comments

Comments

@CTA5816
Copy link

CTA5816 commented Jan 19, 2024

I built and installed joplin with no errors but the CLI application fails to run and returns Cannot find /usr/share/joplin/node_modules/joplin/app/. The contents of /usr/share/joplin are as follows:

.git
.gitignore
package.json
package.tgz
.pnp.cjs
.pnp.loader.mjs
README.md
.yarn
yarn.lock

So no node_modules directory. I'm not familiar with yarn or node.js so sorry if I've failed to provide any obvious logs. Any idea what might be going on here/what logs I should look at to figure that out? Weirdly joplin-desktop works fine when I install it using the same procedure.

@CTA5816
Copy link
Author

CTA5816 commented Jan 19, 2024

These are the contents of package.tgz:

app/
build-doc.sh
cli-integration.sh
createUsers.sh
fuzzing.sh
gulpfile.js
jest.config.js
jest.setup.js
package.json
README.md
tests/
tools/
tsconfig.json

It looks like this has all the package files but I don't know what to do with it (and it seems like it should have been unpacked automatically in the build process).

@CTA5816 CTA5816 closed this as completed Jan 19, 2024
@CTA5816 CTA5816 reopened this Jan 19, 2024
@CTA5816
Copy link
Author

CTA5816 commented Jan 19, 2024

Sorry, didn't mean to close this issue

@mixin82
Copy link
Contributor

mixin82 commented Feb 4, 2024

Hey, which version of Joplin and which command you used to build it?
Assuming you used makepkg, then the log it shows could help. In particular, anything after the line "Packaging CLI with Repo Gulp" should tell what went wrong (see here).
If the package.tgz seems to be good, then something wrong happens with the yes | yarn add ./package.tgz line, but I suppose the log should tell. Btw, the app dir in ./pkg/joplin/usr/share/joplin/package.tgz should have 85 files in total, does it match?
Anyway I'd do a rm -fr src/ pkg/; npm cache clean --force to start fresh.

@brunofontes
Copy link

Hello,

I had the same issue for some time already. Today I saw this thread and could make it work following the instruction to clear cache, but I also ran a npm install after that.

It complains about some deprecated packages/versions, but it works.

@alfredopalhares
Copy link
Owner

I have fixed this in the latest release, the new binary points to the correct path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants