npm mach ich gleich nochmal mit sudo, chown auf iobroker ist gemacht
npm mach ich gleich nochmal mit sudo, chown auf iobroker ist gemacht
Probiere jetzt Deinen pull request, danke für den Pfad!...bin gespannt.
Bekomme den Adapter leider nicht mehr auf grün.
2019-03-30 20:25:25.215 - info: node-red.0 terminating
2019-03-30 20:25:25.236 - error: Caught by controller[0]: { Error: ENOENT: no such file or directory, mkdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public'
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at Object.fs.mkdirSync (fs.js:885:18)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at syncPublic (/opt/iobroker/node_modules/iobroker.node-red/main.js:341:12)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at main (/opt/iobroker/node_modules/iobroker.node-red/main.js:412:5)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at installLibraries (/opt/iobroker/node_modules/iobroker.node-red/main.js:104:23)
2019-03-30 20:25:25.237 - error: Caught by controller[0]: at Adapter. (/opt/iobroker/node_modules/iobroker.node-red/main.js:37:5)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at emitNone (events.js:106:13)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at Adapter.emit (events.js:208:7)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at initAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4990:18)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:788:29
2019-03-30 20:25:25.238 - error: Caught by controller[0]: at Immediate.createInstancesObjects [as _onImmediate] (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:748:13)
2019-03-30 20:25:25.238 - error: Caught by controller[0]: errno: -2,
2019-03-30 20:25:25.238 - error: Caught by controller[0]: code: 'ENOENT',
2019-03-30 20:25:25.239 - error: Caught by controller[0]: syscall: 'mkdir',
2019-03-30 20:25:25.239 - error: Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public' }
2019-03-30 20:25:25.239 - error: host.raspberrypi instance system.adapter.node-red.0 terminated with code 0 (OK)
2019-03-30 20:25:25.239 - info: host.raspberrypi Restart adapter system.adapter.node-red.0 because enabled
2019-03-30 20:25:28.520 - info: host.raspberrypi instance system.adapter.node-red.0 started with pid 10776
2019-03-30 20:25:29.777 - info: node-red.0 starting. Version 1.7.2 in /opt/iobroker/node_modules/iobroker.node-red, node: v8.15.1
2019-03-30 20:25:29.806 - error: node-red.0 uncaught exception: ENOENT: no such file or directory, mkdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public'
2019-03-30 20:25:29.806 - error: node-red.0 Error: ENOENT: no such file or directory, mkdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/../@node-red/editor-client/public'
at Object.fs.mkdirSync (fs.js:885:18)
at syncPublic (/opt/iobroker/node_modules/iobroker.node-red/main.js:341:12)
at main (/opt/iobroker/node_modules/iobroker.node-red/main.js:412:5)
at installLibraries (/opt/iobroker/node_modules/iobroker.node-red/main.js:104:23)
at Adapter. (/opt/iobroker/node_modules/iobroker.node-red/main.js:37:5)
at emitNone (events.js:106:13)
at Adapter.emit (events.js:208:7)
at initAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4990:18)
at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:788:29
at Immediate.createInstancesObjects [as _onImmediate] (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:748:13)
2019-03-30 20:25:29.910 - info: node-red.0 terminating
Vielen Dank für die Erklärung und Hilfe!
Folgende Fehler kommen beim der npm Installation:
pi@raspberrypi:/opt/iobroker $ npm install node-red@0.19.6
^[[C[..................] - fetchMetadata: sill removeObsoleteDep removing lodashnpm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mailparser@0.6.2: Mailparser versions older than v2.3.0 are deprecated
npm WARN deprecated mimelib@0.3.1: This project is unmaintained
npm WARN deprecated mailcomposer@2.1.0: This project is unmaintained
npm WARN deprecated buildmail@2.0.0: This project is unmaintained
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/append-field
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bcrypt/node_modules/nan
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/block-stream
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser/node_modules/qs
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bytes
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/esprima
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session/node_modules/ms
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/qs
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/setprototypeof
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules/statuses
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/finalhandler/node_modules/statuses
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/finalhandler
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/fresh
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/fstream
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/fstream-ignore
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/graceful-readlink
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/i18next-client
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iconv-lite
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/ipaddr.js
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/json5
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/keygrip
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/cookies
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/klaw
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/multer/node_modules/object-assign
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-pre-gyp/node_modules/tar
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/follow-redirects
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/jsonfile
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/oauth
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/proxy-addr
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/pump
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/raw-body
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules/debug
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules/mime
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules/statuses
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/serve-static
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/source-map
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/string_decoder
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/readable-stream
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/tar-pack/node_modules/tar
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uglify-js/node_modules/commander
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uid-number
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/tar-pack
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-pre-gyp
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/utils-merge
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/xml2js/node_modules/xmlbuilder
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/basic-auth
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bcrypt
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/clone
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/cors
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/cron
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/i18next
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/js-yaml
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/jsonata
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/mqtt
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/multer
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/mustache
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red-node-rbe
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red-node-twitter
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/fs-extra
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules/semver
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/nopt
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/oauth2orize
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/passport
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uglify-js
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/xml2js
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/bcrypt/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/body-parser/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express-session/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/express/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/finalhandler/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/mqtt/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/multer/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-pre-gyp/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/node-red/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/send/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/tar-pack/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/uglify-js/node_modules
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/xml2js/node_modules
npm ERR! path /opt/iobroker/node_modules/append-field
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/append-field'
npm ERR! { Error: EACCES: permission denied, access '/opt/iobroker/node_modules/append-field'
npm ERR! stack: 'Error: EACCES: permission denied, access '/opt/iobroker/node_modules/append-field'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/opt/iobroker/node_modules/append-field' }
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).
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-03-30T19_04_14_556Z-debug.log
Danke für die Erklärung.
Also entweder etwas warten und dann die korrigierte Version updaten oder ...?
Ein downgrade im iobroker korrigiert bei mir den Pfad nicht.
Die Installation über ssh und npm install node red habe ich nicht versucht, da ich den genauen Befehl nicht kenne.
Wer kann mir helfen?
Ich glaube, ich habe zwei node red Versionen durch das update installiert und durch die Katze wird eine zweite, ohne Zugriffsmöglichkeit auf das node red vom iobroker installliert.
Alternativ habe ich versucht, auf der CCU3 node red installiert, kann jedich auch von dort nicht auf den iobroker (anderer raspbeerry) zugreifen.
Im Log ist das Fehlen von etwas erkennbar:
module.js:550 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js' at Function.Module._resolveFilename (module.js:548:15)
aktueller Sachstand:
leider immer noch die Version 0.19.6 aktiv