- new installation openhabian image (64bit) on sd raspberry pi 5
- Mosquitto install is possible
- zigbee2mqtt install ends in this error:
Zigbee2MQTT install & config… FAILED (npm ci)
with my pi3 same way no problems !?
with my pi3 same way no problems !?
I suspect it’s this.
openhabian@openhabian:~ $ npm install -g pnpm
npm error code EACCES
npm error syscall mkdir
npm error path /usr/lib/node_modules/pnpm
npm error errno -13
npm error Error: EACCES: permission denied, mkdir ‘/usr/lib/node_modules/pnpm’
npm error at async mkdir (node:internal/fs/promises:858:10)
npm error at async /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:624:20
npm error at async Promise.allSettled (index 0)
npm error at async [reifyPackages] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)
npm error at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)
npm error at async Install.exec (/usr/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error at async Npm.exec (/usr/lib/node_modules/npm/lib/npm.js:207:9)
npm error at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:74:5) {
npm error errno: -13,
npm error code: ‘EACCES’,
npm error syscall: ‘mkdir’,
npm error path: ‘/usr/lib/node_modules/pnpm’
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm error A complete log of this run can be found in: /home/openhabian/.npm/_logs/2025-01-06T20_51_21_412Z-debug-0.log
What about using sudo
?
Not possible same problem
Please use forum search functionality before posting. The problem is well known, manual installation works, the rest is wip.
Please use code fences for code and logs.
My personal opinion: If somebody asks a polite question and if I’ve got the necessary knowledge and the time then I’m pleased to help, otherwise not.
I have spend many hours to fix that problem, I did it manually and with different images.
Sorry but I‘m not deep inside openhab like you,
can you tell me why it has worked with my raspberry3 some days ago and now with my raspberry 5 not ?
I doubt.
In your second post / that is the third post in this thread you tried to run the install process as user openhabian. Due to the -g flag the software will be install in global place where root privileges are required. As no root privileges are provided you get permission denied.
Running the same install process with sudo in front of the command may fail but I doubt that it will fail with the same error message permission denied as root has all the privileges apart of you would work in a SELINUX environment which is not the case for the openhabian images.
So please provide the log / debug output for the command when you do use sudo.
Because the command that was executed was different …?
I have installed 4.3.0 release build using Rasberry pi imager a few days ago. Before loading my backup up I have installed zigbee2mqtt and mosqitto using openhabian-config.
No problems.
Did you add your user to the uucp, tty, dialout groups before installing zigbee2mqtt?
I did the same like you with a raspberry 3 and it works, but not with the rasbberry 5 that‘s why I‘m wondering
Post the output/error message of the command