Reputation: 133
Trying to publish native modules into npm. Getting Could not find a bob. yaml.
Upvotes: 3
Views: 172
Reputation: 133
After a long while I found a solution.
we need to add the bob plugin in nodemodules folder located in
C:\Users\(username)\node_modules
if bob plugin is not present in nodemodules folder, run the below command
npx react-native-builder-bob@latest init
Then, I faced tsc is not found in nodemodules folder
Run the below command
npm install typescript @types/react @types/react-native @types/react-test-renderer @types/jest
Add both folders in your Environment Variables Path
For Eg: C:\Users\(username)\node_modules\react-native-builder-bob\bin
C:\Users\(username)\node_modules\typescript\bin
Restart your machine and try npm publish
Upvotes: 0