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

installation error #1

Closed
ozza opened this issue Nov 2, 2017 · 3 comments
Closed

installation error #1

ozza opened this issue Nov 2, 2017 · 3 comments

Comments

@ozza
Copy link

ozza commented Nov 2, 2017

hello,

i got an error after i executed

sudo npm install -g joplin

npm ERR! code 128
npm ERR! Command failed: /bin/git clone --depth=1 -q -b master https://github.com/laurent22/node-emoji.git /root/.npm/_cacache/tmp/git-clone-7a2d2726
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-7a2d2726': Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-11-02T08_38_04_712Z-debug.log

so i managed to install with --unsafe-perm command. now i'm having

Error: Cannot find module '/usr/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node'

error. i tried to remove node_modules directory under joplin and reinstall by npm install. still getting the same error. there is no binding directory under the lib folder by the way.

do you have any idea?

(i'm running it on Fedora 25 (Korora))

@laurent22
Copy link
Owner

Hello,

Does it work if you install without sudo? Generally it's recommended to avoid using sudo when installing packages, even globally (see here ).

There could be some issue with the permission of the npm install directory, please see here on how to fix them. Personally, I always go for Option 2 and set the install directory under $HOME. That way I don't need sudo and I know that the permissions are always correct.

Please give that a try and let me know if you're still having any issue.

@ozza
Copy link
Author

ozza commented Nov 2, 2017

hello,

it was a permission problem as you mentioned. i fixed it with the guide you sent and it's working now.

thanks!

@ozza ozza closed this as completed Nov 2, 2017
@Happyfeet01
Copy link

Hello,

I have the same error. I try to install it with sudo but I get this error:
/root/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/node-v57-linux-x64

I have no sqlite3 directory in node_modules, but why?

That's my system:
Ubuntu 16.04.3 LTS
Nodejs 8.9.3

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

No branches or pull requests

3 participants