[Node-Red-NodeGen] Global Installation fails

Hi,
I am trying to install Node-Red-NodeGen but it throws the following error:

C:\Projekte\Lokal\software\develop\GitHub\NodeRed2Python>docker exec flow-machine npm install -g node-red-nodegen

npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
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! stack: '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! 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! /usr/src/node-red/.npm/_logs/2020-04-12T11_21_43_447Z-debug.log

I am a Node-Red newbie. There are two questions:

  1. Why is it failing and what can I do. Without parameter -g it installs but I get an access error later when I try to run "npm link"

  2. How can I update mkdirp: "npm WARN deprecated mkdirp@0.5.1:..."?

Thank you for your help!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.