i am trying to init a new react native project using the command react-native init MyProject --version 0.58.6 but every time i do this , there comes an error as follows - Done in 80.32s.
D:MyProject ode_modulesmetro-configsrcdefaultslacklist.js:34
return new RegExp( ^SyntaxError: Invalid regular expression: /(.fixtures.|node_modules[]react[]dist[].|website ode_modules.|heapCaptureundle.js|.tests.)$/: Unterminated character class at new RegExp () at blacklist (D:MyProject ode_modulesmetro-configsrcdefaultslacklist.js:34:10) at getBlacklistRE (D:MyProject ode_modules eact-nativelocal-cliutilConfig.js:56:10) at Object. (D:MyProject ode_modules eact-nativelocal-cliutilConfig.js:71:20) at Module._compile (internal/modules/cjs/loader.js:959:30) at Module._compile (D:MyProject ode_modulespirateslibindex.js:99:24) at Module._extensions..js (internal/modules/cjs/loader.js:995:10) at Object.newLoader [as .js] (D:MyProject ode_modulespirateslibindex.js:104:7) at Module.load (internal/modules/cjs/loader.js:815:32) at Function.Module._load (internal/modules/cjs/loader.js:727:14)
After building dependencies is done
question from:https://stackoverflow.com/questions/65914294/react-native-init-myproject-version-0-58-6-but-every-time-i-do-this-there-co