TypeError: path must be a string or Buffer
$ node -v
v8.11.1
$ yarn -v
1.12.3
$ yarn setup
yarn run v1.12.3
$ node ./scripts/setup
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] 🔗 Linking dependencies...
warning " > [email protected]" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0".
warning "firebase-admin > @firebase/[email protected]" has unmet peer dependency "@firebase/[email protected]".
warning "firebase-admin > @firebase/database > @firebase/[email protected]" has unmet peer dependency "@firebase/[email protected]".
warning " > [email protected]" has incorrect peer dependency "graphql@^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0".
warning " > [email protected]" has incorrect peer dependency "graphql@^0.13.0".
warning " > [email protected]" has unmet peer dependency "eslint@>=3.14.1".
warning " > [email protected]" has unmet peer dependency "eslint@>=2.0.0".
warning "react-app-tools > babel-plugin-transform-dynamic-import > @babel/[email protected]" has incorrect peer dependency "@babel/[email protected]".
warning " > [email protected]" has incorrect peer dependency "graphql@^0.13.0".
warning "relay-compiler > [email protected]" has incorrect peer dependency "graphql@^0.13.0".
[5/5] 📃 Building fresh packages...
TypeError: path must be a string or Buffer
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.
Hi @dann815
The issue you have is caused by line https://github.com/kriasoft/react-firebase-starter/blob/6f7c4ab0671c8ef90a3fe53afe7ce511f34aac4f/.env#L32
To resolve it
• you need to uncomment following 3 lines with PostgreSQL .pem files.
• get these files from your Cloud SQL dashboard.
• place them to the ssl folder.
Often times it's convenient to use a remote SQL database during local development, this way you and your team members can start working on the project right away without any setup steps (other than installing NPM modules via yarn install). For this to work, you would need to download SSL certificates:

Put them into ssl folder of your project:

And uncomment the following lines in the .env file:
https://github.com/kriasoft/react-firebase-starter/blob/b0429987356459c270dbf43ce7976873c2145f16/.env#L35-L38
I hope this helps!