Home / GitHub Page

CLI error updating from 141 to 145

can’t update

1959 verbose argv "/home/foxmask/node-v10.16.2-linux-x64/bin/node" "/home/foxmask/node/bin/npm" "install" "-g" "joplin"
1960 verbose node v10.16.2
1961 verbose npm  v6.11.3
1962 error code ELIFECYCLE
1963 error errno 1
1964 error joplin@1.0.145 postinstall: `cd .. && npm i`
1964 error Exit status 1
1965 error Failed at the joplin@1.0.145 postinstall script.
1965 error This is probably not a problem with npm. There is likely additional logging output above.
1966 verbose exit [ 1, true ]

1 Like

Right, looks like CLI was broken. It should be fixed in latest v146

My error log shows a bit more information:

$ npm install --global joplin@1.0.145
/home/tessus/.node_modules_global/bin/joplin -> /home/tessus/.node_modules_global/lib/node_modules/joplin/main.js

> sharp@0.22.1 install /home/tessus/.node_modules_global/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 Using cached /home/tessus/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz

> sqlite3@4.1.0 install /home/tessus/.node_modules_global/lib/node_modules/joplin/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
[sqlite3] Success: "/data/home/tessus/.node_modules_global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/node-v64-linux-x64/node_sqlite3.node" is installed via remote

> joplin@1.0.145 postinstall /home/tessus/.node_modules_global/lib/node_modules/joplin
> cd .. && npm i

npm ERR! code ENOLOCAL
npm ERR! Could not install from "" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tessus/.npm/_logs/2019-09-08T19_13_50_560Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! joplin@1.0.145 postinstall: `cd .. && npm i`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the joplin@1.0.145 postinstall 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/tessus/.npm/_logs/2019-09-08T19_13_53_031Z-debug.log

And here the relevant debug output:

11508 verbose lifecycle joplin@1.0.145~postinstall: CWD: /home/tessus/.node_modules_global/lib/node_modules/joplin
11509 silly lifecycle joplin@1.0.145~postinstall: Args: [ '-c', 'cd .. && npm i' ]
11510 silly lifecycle joplin@1.0.145~postinstall: Returned: code: 1  signal: null
11511 info lifecycle joplin@1.0.145~postinstall: Failed to exec postinstall script
11512 timing action:postinstall Completed in 1667ms
11513 verbose unlock done using /home/tessus/.npm/_locks/staging-7c8da3dc4ddf06ab.lock for /home/tessus/.node_modules_global/lib/node_modules/.staging
11514 timing stage:rollbackFailedOptional Completed in 2230ms
11515 timing stage:runTopLevelLifecycles Completed in 79742ms
11516 verbose stack Error: joplin@1.0.145 postinstall: `cd .. && npm i`
11516 verbose stack Exit status 1
11516 verbose stack     at EventEmitter.<anonymous> (/data/home/tessus/.node_modules_global/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
11516 verbose stack     at EventEmitter.emit (events.js:189:13)
11516 verbose stack     at ChildProcess.<anonymous> (/data/home/tessus/.node_modules_global/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
11516 verbose stack     at ChildProcess.emit (events.js:189:13)
11516 verbose stack     at maybeClose (internal/child_process.js:970:16)
11516 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
11517 verbose pkgid joplin@1.0.145
11518 verbose cwd /data/backup/joplin
11519 verbose Linux XXXXXXXX
11520 verbose argv "/usr/local/lib/nodejs/node-v10.15.3/bin/node" "/home/tessus/.node_modules_global/bin/npm" "install" "--global" "joplin@1.0.145"
11521 verbose node v10.15.3
11522 verbose npm  v6.11.3
11523 error code ELIFECYCLE
11524 error errno 1
11525 error joplin@1.0.145 postinstall: `cd .. && npm i`
11525 error Exit status 1
11526 error Failed at the joplin@1.0.145 postinstall script.
11526 error This is probably not a problem with npm. There is likely additional logging output above.
11527 verbose exit [ 1, true ]

Ah, missed your reply.

Yes 1.0.146 works! Thanks!