YunoHost-Apps / codimd_ynh

CodiMD package for YunoHost
https://hackmd.io/
GNU General Public License v3.0
11 stars 12 forks source link

update is failing (file or dir not found) #62

Closed nin0-0 closed 3 years ago

nin0-0 commented 3 years ago

running yunohost tools upgrade apps fails: https://paste.yunohost.org/raw/ilesanobaj

seems it can't find the npm files.

2021-07-15 19:54:41,256: DEBUG - npm WARN tar ENOENT: no such file or directory, open '/var/www/codimd/node_modules/.staging/rxjs-1b0c9ab8/operator/zipAll.d.ts'
2021-07-15 19:54:41,256: DEBUG - npm WARN tar ENOENT: no such file or directory, open '/var/www/codimd/node_modules/.staging/rxjs-1b0c9ab8/operators/zipAll.d.ts'
2021-07-15 19:54:41,256: DEBUG - npm WARN tar ENOENT: no such file or directory, lstat '/var/www/codimd/node_modules/.staging/rxjs-1b0c9ab8/src/add'
2021-07-15 19:54:41,256: DEBUG - npm WARN tar ENOENT: no such file or directory, lstat '/var/www/codimd/node_modules/.staging/rxjs-1b0c9ab8/src/internal'
2021-07-15 19:54:41,256: DEBUG - npm WARN tar ENOENT: no such file or directory, lstat '/var/www/codimd/node_modules/.staging/rxjs-1b0c9ab8/src/operator'
2021-07-15 19:54:41,256: DEBUG - npm WARN tar ENOENT: no such file or directory, open '/var/www/codimd/node_modules/.staging/rxjs-1b0c9ab8/src/operators/zipAll.ts'
2021-07-15 19:54:41,256: DEBUG - npm WARN tar ENOENT: no such file or directory, open '/var/www/codimd/node_modules/.staging/rxjs-1b0c9ab8/src/LICENSE.txt'
2021-07-15 19:54:42,316: DEBUG - npm ERR! err.code.match is not a function
2021-07-15 19:54:42,349: DEBUG - 
2021-07-15 19:54:42,349: DEBUG - npm ERR! A complete log of this run can be found in:
2021-07-15 19:54:42,349: DEBUG - npm ERR!     /root/.npm/_logs/2021-07-15T23_54_42_332Z-debug.log
2021-07-15 19:54:42,366: DEBUG - + ynh_exit_properly

npm logs

Context

nin0-0 commented 3 years ago

I've ran sudo yunohost app upgrade codimd -u https://github.com/YunoHost-Apps/codimd_ynh/tree/testing --debug and that worked out fine!