I did create new VM today on Azure and tried to deploy NodeRed per https://nodered.org/docs/getting-started/azure
The process broke on installation of node red with error in bcrypt.
I did use work-around to install unsafe, i.e. replace "sudo npm install -g node-red" with "sudo npm install -g --unsafe-perm node-red"
Question 1: can I recover from "unsafe" to safe somehow. What risks have I introduced to my installation?
Question 2: can someone review Azure installation instructions to make them "work out of the box"?
Relevant section from log
email@example.com install /usr/lib/node_modules/node-red/node_modules/bcrypt
node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for firstname.lastname@example.org and email@example.com (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red/node_modules/bcrypt/lib'
pilot@bagxml-U18:~$ gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/home/pilot/.cache/node-gyp/10.20.1"