# \[Node-Red-NodeGen\] Global Installation fails

**URL:** https://discourse.nodered.org/t/node-red-nodegen-global-installation-fails/24732
**Category:** General
**Created:** [13 April 2020 08:26 UTC](https://discourse.nodered.org/t/node-red-nodegen-global-installation-fails/24732 "2020-04-13T08:26:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AiKju](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aikju/32/20215_2.png) [@AiKju](https://discourse.nodered.org/u/AiKju)
#### Post date: [13 April 2020 08:26 UTC](https://discourse.nodered.org/t/node-red-nodegen-global-installation-fails/24732/1 "2020-04-13T08:26:53Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [12 June 2020 08:37 UTC](https://discourse.nodered.org/t/node-red-nodegen-global-installation-fails/24732/2 "2020-06-12T08:37:05Z")

</div>

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