Linux command to install Dashboard 2.0 into node-red

Hello, We want our web-UI to run within a Docker container for deployment. To do that I start with the standard nodered/node-red:latest image from DockerHub. The problem is that this image does not have Dashboard 2.0 installed. The usual way to install Dashboard 2.0 is through the palette management graphical menu but I'd like to make my docker image build automatically. The "docker compose build" instruction provides for that but needs shell commands for everything.

Is there a way to install Dashboard 2.0 into node-red with a linux shell command?

I added this command to my dockerfile. That does the trick.

RUN npm install --unsafe-perm --no-update-notifier --no-fund --only=production @flowfuse/node-red-dashboard@latest

1 Like
~ $ npm install --unsafe-perm --no-update-notifier --no-fund --only=production @flowfuse/node-red-dashboard@latest
npm warn config only Use `--omit=dev` to omit dev dependencies from the install.
npm error code EACCES
npm error syscall open
npm error path /usr/src/node-red/package-lock.json
npm error errno -13
npm error Error: EACCES: permission denied, open '/usr/src/node-red/package-lock.json'
npm error     at async open (node:internal/fs/promises:639:25)
npm error     at async writeFile (node:internal/fs/promises:1216:14)
npm error     at async Promise.all (index 0)
npm error     at async [saveIdealTree] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:1526:7)
npm error     at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:148:5)
npm error     at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error     at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9)
npm error     at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) {
npm error   errno: -13,
npm error   code: 'EACCES',
npm error   syscall: 'open',
npm error   path: '/usr/src/node-red/package-lock.json'
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: /data/.npm/_logs/2025-10-24T17_41_12_269Z-debug-0.log
~ $ 

I can't install it; nodered runs on Docker Alpine.