Home / GitHub Page

Error when install terminal joplin on ubuntu 18.04

I install terminal joplin with NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin.
And appear error log.

/home/vpoat/.joplin-bin/bin/joplin -> /home/vpoat/.joplin-bin/lib/node_modules/joplin/main.js

> sharp@0.22.1 install /home/vpoat/.joplin-bin/lib/node_modules/joplin/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
fs.js:114
    throw err;
    ^

Error: EACCES: permission denied, copyfile '/tmp/12343-libvips-8.7.4-linux-x64.tar.gz' -> '/home/vpoat/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz'
    at copyFileSync (fs.js:1728:3)
    at WriteStream.<anonymous> (/home/vpoat/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/install/libvips.js:100:13)
    at WriteStream.emit (events.js:198:13)
    at lazyFs.close (internal/fs/streams.js:207:14)
    at FSReqWrap.args [as oncomplete] (fs.js:140:20)
make: Entering directory '/home/vpoat/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/build'
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
../src/common.cc:25:10: fatal error: vips/vips8: No such file or directory
 #include <vips/vips8>
          ^~~~~~~~~~~~
compilation terminated.
sharp.target.mk:128: recipe for target 'Release/obj.target/sharp/src/common.o' failed
make: *** [Release/obj.target/sharp/src/common.o] Error 1
make: Leaving directory '/home/vpoat/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.0.0-21-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/vpoat/.joplin-bin/lib/node_modules/joplin/node_modules/sharp
gyp ERR! node -v v10.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.22.1 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.22.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vpoat/.npm/_logs/2019-08-05T11_45_11_922Z-debug.log

I think problem related to installing some dependency.

This looks rather like a file permission error.

1 Like

Thanks i didn’t notice that