# Docker Installation Failure - NPM Permissions Error

**URL:** https://forum.shopware.com/t/docker-installation-failure-npm-permissions-error/66354
**Category:** Installation / Getting Started (EN)
**Created:** [18. April 2020 um 09:33 UTC](https://forum.shopware.com/t/docker-installation-failure-npm-permissions-error/66354 "2020-04-18T09:33:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dave\_D](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@Dave\_D](https://forum.shopware.com/u/Dave_D)
#### Post date: [18. April 2020 um 09:33 UTC](https://forum.shopware.com/t/docker-installation-failure-npm-permissions-error/66354/1 "2020-04-18T09:33:01Z")

</div>

**HOST OS:&nbsp;** Ubuntu 18.04

Steps Taken: (For Docker Installation of Shopware 6)

1. 

```
 git clone git@github.com:shopware/development.git

```

1. 

```
 cd development

```

1. 

```
 ./psh.phar docker:start (Platform will be a vendor dependency)

```

1. 

```
 ./psh.phar docker:ssh

```

1. 

```
 ./psh.phar install

```

&nbsp;

The installation script fails at Step 25

_\> npm clean-install --prefix vendor/shopware/platform/src/Administration/Resources/app/administration_

Error reported as:

_&nbsp;&nbsp; &nbsp;npm ERR! code EACCES  
&nbsp;&nbsp; &nbsp;npm ERR! syscall open  
&nbsp;&nbsp; &nbsp;npm ERR! path /.npm/\_cacache/tmp/f8dd11e8  
&nbsp;&nbsp; &nbsp;npm ERR! errno -13  
&nbsp;&nbsp; &nbsp;npm ERR!&nbsp;  
&nbsp;&nbsp; &nbsp;npm ERR! Your cache folder contains root-owned files, due to a bug in  
&nbsp;&nbsp; &nbsp;npm ERR! previous versions of npm which has since been addressed.  
&nbsp;&nbsp; &nbsp;npm ERR!&nbsp;  
&nbsp;&nbsp; &nbsp;npm ERR! To permanently fix this problem, please run:  
&nbsp;&nbsp; &nbsp;npm ERR! &nbsp; sudo chown -R 1000:1000 “/.npm”_  
&nbsp;

NPM version in docker is\_: 6.14.4\_

From the&nbsp; **Dockerfile&nbsp;** for the app container, you have…

\_&& chown -R {USER\_ID}:{GROUP\_ID} ${NPM\_CONFIG\_CACHE} \_

&nbsp;

I could not find any recent references on the forum to this issue, so therefore, I am highlighting this issue in case it happens for anyone else…

---

<div class="post-metadata">

### Author: ![Dave\_D](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@Dave\_D](https://forum.shopware.com/u/Dave_D)
#### Post date: [20. April 2020 um 13:52 UTC](https://forum.shopware.com/t/docker-installation-failure-npm-permissions-error/66354/2 "2020-04-20T13:52:02Z")

</div>

Actually, this error is resolved for me now.

For anyone stuck, you need to „log into“ your docker container as root. Either by using „docker exec“ directly, or there is a ssh-rrot command from .phar. Once there, you can „cd…“&nbsp; and find the .npm directory. And then chown from there…
