You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.join (path.js:1036:7)
at isProjectUsingYarn (/Users/ranga/Documents/Projects/testing348333/node_modules/@react-native-community/cli/build/tools/yarn.js:101:51)
at shouldUseYarn (/Users/ranga/Documents/Projects/testing348333/node_modules/@react-native-community/cli/build/tools/PackageManager.js:36:39)
at Object.install (/Users/ranga/Documents/Projects/testing348333/node_modules/@react-native-community/cli/build/tools/PackageManager.js:44:10)
at generateProject (/Users/ranga/Documents/Projects/testing348333/node_modules/@react-native-community/cli/build/commands/init/init.js:111:18)
at Object.init (/Users/ranga/Documents/Projects/testing348333/node_modules/@react-native-community/cli/build/commands/init/init.js:94:3)
at run (/usr/local/lib/node_modules/react-native-cli/index.js:302:7)
at createProject (/usr/local/lib/node_modules/react-native-cli/index.js:249:3)
at init (/usr/local/lib/node_modules/react-native-cli/index.js:200:5)
Reproducible Demo
Create a new project to see the error react-native init testing348333
Activity
[-]react-native new project create error[/-][+]react-native create new project error[/+]fix: set project directory to install packages in init command (#262)
fix: set project directory to install packages in init command (#262)
SoldierCorp commentedon Mar 23, 2019
Hi!
You closed this but you didn't released a new version so we can pull it in our locals.
thymikee commentedon Mar 23, 2019
I'm pretty sure I released 1.5.1 and tested it works today. Can you share some details? Maybe your package manager use cached version somehow?
fpersico commentedon Mar 23, 2019
@thymikee you forgot to release a version for v2 i mean v2.0.1.
thymikee commentedon Mar 23, 2019
2.0 should not be used by RN 0.59. If it is, that's a bug
thymikee commentedon Mar 23, 2019
Just confirmed it's not used there. Also 2.0 didn't get the commit that broke this. I'm curious about your environment and how you run init
SoldierCorp commentedon Mar 23, 2019
@thymikee It was the cache, now it's working!
Thank you :)
Sync fork (#1)
fix: set project directory to install packages in init command (react…