birdofpreyru/react-native-audio

Unable to add this library with yarn.

Closed this issue · 1 comments

I am unable to add this library with yarn.

yarn add @dr.pogodin/react-native-audio

error /Users/teiturg/GitHub/siminntv-react-native/node_modules/@dr.pogodin/react-native-audio: Command failed.
Exit code: 127
Command: pod-install
Arguments: 
Directory: /Users/teiturg/GitHub/siminntv-react-native/node_modules/@dr.pogodin/react-native-audio
Output:
/bin/sh: pod-install: command not found
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Is it possible this library is not compatible with yarn?

Hey @Siminn-teiturg , I don’t use yarn, thus haven’t tested it, and could miss something. It complaints about this script in package.json

"postinstall": "pod-install",

Looking at it now, I guess it just shouldn’t be there - it just runs pod install for iOS projects, and only needed in the example app, or host codebase, not in the library package.json I guys - try to remove it.

I guess it didn’t fail for me just cause I always have pod-install dependency in my projects