# Shopware Production npm error - readlink: illegal option -- f

**URL:** <https://forum.shopware.com/t/shopware-production-npm-error-readlink-illegal-option-f/63716>\
**Category:** Installation / Einstieg\
**Created:** [28. Dezember 2019 um 10:50 UTC](https://forum.shopware.com/t/shopware-production-npm-error-readlink-illegal-option-f/63716 "2019-12-28T10:50:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [28. Dezember 2019 um 10:50 UTC](https://forum.shopware.com/t/shopware-production-npm-error-readlink-illegal-option-f/63716/1 "2019-12-28T10:50:46Z")

</div>

Wollte gerade einmal versuchen das Shopware Production Template zu installieren.

Bekomme allerdings beim build-js.sh script direkt Fehler :

```
bin/build-js.sh                                      
readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname path
usage: dirname path
Error: EACCES: permission denied, mkdir '/vendor'

```

Danach mit sudo ausgeführt, was ja eigentlich gar nicht nötig sein sollte, naja: Und dann folgender:&nbsp;[https://gist.github.com/ChristopherDosin/062dccf596eb4396d8b9d39ec1801e41](https://gist.github.com/ChristopherDosin/062dccf596eb4396d8b9d39ec1801e41)

Die package.json ist nicht vorhanden unter vendor/shopware/administration/Resources/package.json

Nur ein Ordner app worin sich der Ordner administration befindet, welcher keinen Inhalt hat.

PS: Okay, habe glaube ich&nbsp;den Fehler. Das Script oder was auch immer hat den vendor Ordner in mein Root Verzeichnis vom Rechner gepackt nach /  
Logisch das er nichts findet.

Demnach scheint wohl diese Zeile nicht zu greifen:[https://github.com/shopware/production/blob/6.1/bin/build-js.sh#L3](https://github.com/shopware/production/blob/6.1/bin/build-js.sh#L3)&nbsp;bzw.&nbsp;readlink: illegal option – f der Fehler zu sein?

[https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac](https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac)

macOS 10.14

**Fehlerbehebung in meinen Fall:**

```
brew install coreutils

```

Zeile geändert zu ( readlink zu&nbsp;greadlink )

```
export PROJECT_ROOT="${PROJECT_ROOT:-"$(dirname $(dirname $(greadlink -f "$0")))"}"

```

Nun läuft er durch.

Issue auf Github:&nbsp;[https://github.com/shopware/production/issues/3](https://github.com/shopware/production/issues/3)
