birdofpreyru / react-native-audio

React Native: access to the audio input stream, and audio sample player
https://dr.pogodin.studio/docs/react-native-audio
Other
28 stars 4 forks source link

Unable to add this library with yarn. #14

Closed Siminn-teiturg closed 1 year ago

Siminn-teiturg commented 1 year ago

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 1 year ago

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

https://github.com/birdofpreyru/react-native-audio/blob/09c40fa4a7519a739221b9fe05bee9fd01824b05/package.json#L33

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