I have a Rails application using React, Webpack, and Yarn for the client side. I have everything relating to the client side within the /client directory. This includes my yarn.
maybe your can try typing in package.json
"engines": { "node": "^6.9", "yarn": "^0.21" },