Unable to add this library with yarn.
Closed this issue · 1 comments
Siminn-teiturg commented
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?
birdofpreyru commented
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
react-native-audio/package.json
Line 33 in 09c40fa
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