diff --git a/local-cli/library/library.js b/local-cli/library/library.js index e8246ff7a..14afd6a40 100644 --- a/local-cli/library/library.js +++ b/local-cli/library/library.js @@ -29,7 +29,7 @@ function library(argv, config, args) { const source = path.resolve('node_modules', 'react-native', 'Libraries', 'Sample'); if (!fs.existsSync(libraries)) { - fs.mkdir(libraries); + fs.mkdirSync(libraries); } if (fs.existsSync(libraryDest)) {