autograph-obsidian icon indicating copy to clipboard operation
autograph-obsidian copied to clipboard

Weird Error + Bad Handling

Open J-E-J-S opened this issue 1 year ago • 0 comments

❯ autograph 'genetic code expansion mitochondria'
info: Searching using eupmc API
(node:5599) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
warn: We had to retry the last request 10 times.
error: Malformed or empty response from EuropePMC. Try running again. Perhaps your query is wrong.
getpapers not found, begining install with npm.
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/getpapers
npm ERR! dest /usr/local/lib/node_modules/.getpapers-nAD5YUxa
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/getpapers' -> '/usr/local/lib/node_modules/.getpapers-nAD5YUxa'
npm ERR!  [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/getpapers' -> '/usr/local/lib/node_modules/.getpapers-nAD5YUxa'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'rename',
npm ERR!   path: '/usr/local/lib/node_modules/getpapers',
npm ERR!   dest: '/usr/local/lib/node_modules/.getpapers-nAD5YUxa'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/james/.npm/_logs/2023-02-24T10_15_26_864Z-debug-0.log
info: Searching using eupmc API
(node:5604) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
warn: We had to retry the last request 10 times.
error: Malformed or empty response from EuropePMC. Try running again. Perhaps your query is wrong.
Process Failed:
Try run autograph with admin permissions OR
Try download getpapers independently from: https://www.npmjs.com/package/getpapers
Process Failed:
Ensure npm is installed or install from: https://www.npmjs.com/
Ensure autograph is run with admin permissions or download getpapers independently from https://www.npmjs.com/package/getpapers

J-E-J-S avatar Feb 24 '23 10:02 J-E-J-S