NEWS
[Gelöst] -> Benötige Hilfe beim Update js-controller from @1.4.2 to @1.5.7
-
Hallo zusammen,
ich möchte meinen js-controller aktualisieren.
Der ioBroker Installation "Fixer" hat alles repariert!!!
Tommy, Danke für den Hinweis....Problem gelöstolli@iobroker-nuc:~$ sudo iobroker upgrade self Update js-controller from @1.4.2 to @1.5.7 NPM version: 6.4.1 npm install iobroker.js-controller@1.5.7 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call) Unhandled rejection Error: EACCES: permission denied, mkdir '/home/olli/.npm/_cacache/tmp' npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://npm.community> Host "iobroker-nuc" (linux) updated Execute: chmod -R 777 /opt/iobroker chmod: changing permissions of '/opt/iobroker/backups/2019_02_16-16_51_50_backupiobroker.tar.gz': Operation not permitted Chmod finished. Restart controller
Aber selbst unter root erhalte ich Zugriffsfehler. Anscheinend wird eine Verzeichnis benötigt, welches nicht existiert...
Kann mir jemand helfen?
Output unter dem root-User:
root@iobroker-nuc:/opt/iobroker# sudo iobroker stop root@iobroker-nuc:/opt/iobroker# iobroker upgrade self Update js-controller from @1.4.2 to @1.5.7 NPM version: 6.4.1 npm install iobroker.js-controller@1.5.7 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call) npm ERR! path /root/.npm/_logs npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall scandir npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs' npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs' npm ERR! stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'scandir', npm ERR! path: '/root/.npm/_logs' } 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 (though this is not recommended). glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs' stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'', errno: -13, code: 'EACCES', syscall: 'scandir', path: '/root/.npm/_logs' } npm ERR! path /root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall open npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e' npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e' npm ERR! cause: npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e' }, npm ERR! isOperational: true, npm ERR! stack: 'Error: EACCES: permission denied, open \'/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e' } 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 (though this is not recommended). host.iobroker-nuc Cannot install iobroker.js-controller@1.5.7: 243
Ich habe die im Forum gefundenen Ideen zu dem Thema bereits ausprobiert. Aber keine Besserung
sudo chown -R $(whoami) ~/.npm
und
olli@iobroker-nuc:~$ npm rebuild iobroker.history@1.8.5 /home/olli/node_modules/iobroker.history olli@iobroker-nuc:~$ sudo npm rebuild iobroker.history@1.8.5 /home/olli/node_modules/iobroker.history ╭───────────────────────────────────────────────────────────────╮ │ │ │ New minor version of npm available! 6.4.1 → 6.9.0 │ │ Changelog: https://github.com/npm/cli/releases/tag/v6.9.0 │ │ Run npm install -g npm to update! │ │ │ ╰───────────────────────────────────────────────────────────────╯