我正在研究一个通常使用xcode构建良好的react-native项目。 我遇到了无法修复的错误,所以我想我将删除我的node_modules并再次进行yarn或npm安装。现在,当我尝试构建它时,它立即失败,并且出现了很多错误,例如:
Showing Recent Errors Only
:-1: folly-2018.10.22.00/folly/test/TryTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/TryTest.cpp'
:-1: folly-2018.10.22.00/folly/test/TypeListTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/TypeListTest.cpp'
:-1: folly-2018.10.22.00/folly/test/UTF8StringTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/UTF8StringTest.cpp'
:-1: folly-2018.10.22.00/folly/test/UnicodeTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/UnicodeTest.cpp'
:-1: folly-2018.10.22.00/folly/test/UnitTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/UnitTest.cpp'
:-1: folly-2018.10.22.00/folly/test/UriBenchmark.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/UriBenchmark.cpp'
:-1: folly-2018.10.22.00/folly/test/UriTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/UriTest.cpp'
:-1: folly-2018.10.22.00/folly/test/UtilityTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/UtilityTest.cpp'
:-1: folly-2018.10.22.00/folly/test/VarintTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/VarintTest.cpp'
:-1: folly-2018.10.22.00/folly/test/common/: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/common'
:-1: folly-2018.10.22.00/folly/test/common/TestMain.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/common/TestMain.cpp'
:-1: folly-2018.10.22.00/folly/test/function_benchmark/: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/function_benchmark'
:-1: folly-2018.10.22.00/folly/test/function_benchmark/benchmark_impl.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/function_benchmark/benchmark_impl.cpp'
:-1: folly-2018.10.22.00/folly/test/function_benchmark/benchmark_impl.h: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/function_benchmark/benchmark_impl.h'
:-1: folly-2018.10.22.00/folly/test/function_benchmark/main.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/function_benchmark/main.cpp'
:-1: folly-2018.10.22.00/folly/test/function_benchmark/test_functions.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/function_benchmark/test_functions.cpp'
:-1: folly-2018.10.22.00/folly/test/function_benchmark/test_functions.h: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/function_benchmark/test_functions.h'
:-1: folly-2018.10.22.00/folly/test/json_patch_test.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/json_patch_test.cpp'
:-1: folly-2018.10.22.00/folly/test/json_pointer_test.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/json_pointer_test.cpp'
:-1: folly-2018.10.22.00/folly/test/json_test_data/: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/json_test_data'
:-1: folly-2018.10.22.00/folly/test/json_test_data/commented.json: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/json_test_data/commented.json'
:-1: folly-2018.10.22.00/folly/test/json_test_data/commented.json.exp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/json_test_data/commented.json.exp'
:-1: folly-2018.10.22.00/folly/test/small_vector_test.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/small_vector_test.cpp'
:-1: folly-2018.10.22.00/folly/test/sorted_vector_test.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/sorted_vector_test.cpp'
:-1: folly-2018.10.22.00/folly/test/stl_tests/: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/stl_tests'
:-1: folly-2018.10.22.00/folly/test/stl_tests/StlVectorTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/test/stl_tests/StlVectorTest.cpp'
:-1: folly-2018.10.22.00/folly/tools/: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tools'
:-1: folly-2018.10.22.00/folly/tools/BenchmarkCompare.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tools/BenchmarkCompare.cpp'
:-1: folly-2018.10.22.00/folly/tracing/: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing'
:-1: folly-2018.10.22.00/folly/tracing/README.md: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/README.md'
:-1: folly-2018.10.22.00/folly/tracing/ScopedTraceSection.h: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/ScopedTraceSection.h'
:-1: folly-2018.10.22.00/folly/tracing/StaticTracepoint-ELFx86.h: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/StaticTracepoint-ELFx86.h'
:-1: folly-2018.10.22.00/folly/tracing/StaticTracepoint.h: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/StaticTracepoint.h'
:-1: folly-2018.10.22.00/folly/tracing/test/: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/test'
:-1: folly-2018.10.22.00/folly/tracing/test/StaticTracepointTest.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/test/StaticTracepointTest.cpp'
:-1: folly-2018.10.22.00/folly/tracing/test/StaticTracepointTestModule.cpp: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/test/StaticTracepointTestModule.cpp'
:-1: folly-2018.10.22.00/folly/tracing/test/StaticTracepointTestModule.h: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/test/StaticTracepointTestModule.h'
:-1: tar: Error exit delayed from previous errors.
:-1: Unpacking '/Users/ami/.rncache/folly-2018.10.22.00.tar.gz' failed. Debug info:
:-1: -rw-r--r-- 1 ami staff 2687604 Jun 11 16:04 /Users/ami/.rncache/folly-2018.10.22.00.tar.gz
:-1: f70a75bfeb394363d2049a846bba118ffb3b368a /Users/ami/.rncache/folly-2018.10.22.00.tar.gz
Command PhaseScriptExecution failed with a nonzero exit code
不知道这里发生了什么。如果有帮助,这是Xcode 10.2.1