I've installed NR 2.01 successfully in Docker on a QNAP NAS.
If I SSH into the container and issue the command :
node-red admin init
All I get is a :
node-red: not found
So, I assumed that although not mentioned anywhere I could find, node-red admin
is something that needs to be installed, right? So I tried :
sudo npm install -g node-red-admin
That too failed because the container image I pulled from Docker HUB doesn't understand sudo
. So, I tried without, and I got this:
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
npm ERR! }
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /usr/src/node-red/.npm/_logs/2021-07-21T20_22_04_066Z-debug.log
I am amazed about the wast distance between the simplicity and ease-of-use described in the "Getting Started" section, and the real world whenever I actually try to do what it says - always! (Why is it that whenever I try anything in the Linux world, nothing ever works as described?)