Can't get ghost running on Apple M1 chip!

Hi there, I try to install ghost locally on my new MacBook with Apple M1 chip and failed when starting ghost.

Any idea if the circular dep is the problem and how I can fix it?

Thanks, Leif

> ghost start
Found a development config but not a production config, running in development mode instead
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✔ Checking binary dependencies
✖ Starting Ghost: ghost-local-1
A GhostError occurred.

Message: 
(node:50185) Warning: Accessing non-existent property 'i18n' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)

<--- Last few GCs --->

[50185:0x150008000]     1151 ms: Scavenge 62.5 (82.5) -> 52.8 (87.5) MB, 1.2 / 0.0 ms  (average mu = 0.990, current mu = 0.990) allocation failure 
[50185:0x150008000]     1172 ms: Scavenge 67.0 (87.5) -> 52.8 (88.3) MB, 0.5 / 0.0 ms  (average mu = 0.990, current mu = 0.990) task 
[50185:0x150008000]     1211 ms: Scavenge 69.6 (89.3) -> 54.9 (89.8) MB, 0.6 / 0.0 ms  (average mu = 0.990, current mu = 0.990) allocation failure 


<--- JS stacktrace --->

FATAL ERROR: wasm code commit Allocation failed - process out of memory
 1: 0x1027fa9d8 node::Abort() [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 2: 0x1027fab58 node::errors::TryCatchScope::~TryCatchScope() [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 3: 0x102914384 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 4: 0x102914318 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 5: 0x102ea9cdc v8::internal::wasm::WasmCodeAllocator::AllocateForCodeInRegion(v8::internal::wasm::NativeModule*, unsigned long, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 6: 0x102eaa970 v8::internal::wasm::NativeModule::CreateEmptyJumpTableInRegion(int, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 7: 0x102ea9638 v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 8: 0x102eaa780 v8::internal::wasm::NativeModule::NativeModule(v8::internal::wasm::WasmEngine*, v8::internal::wasm::WasmFeatures const&, v8::internal::VirtualMemory, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, std::__1::shared_ptr<v8::internal::Counters>, std::__1::shared_ptr<v8::internal::wasm::NativeModule>*) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
 9: 0x102eaccf4 v8::internal::wasm::WasmCodeManager::NewNativeModule(v8::internal::wasm::WasmEngine*, v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, unsigned long, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
10: 0x102eb8808 v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
11: 0x102e85130 v8::internal::wasm::CompileToNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, v8::internal::wasm::ErrorThrower*, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, v8::internal::wasm::ModuleWireBytes const&, v8::internal::Handle<v8::internal::FixedArray>*) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
12: 0x102eb565c v8::internal::wasm::WasmEngine::SyncCompile(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, v8::internal::wasm::ErrorThrower*, v8::internal::wasm::ModuleWireBytes const&) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
13: 0x102edc364 v8::(anonymous namespace)::WebAssemblyModule(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
14: 0x10297d094 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
15: 0x10297c3f8 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
16: 0x10297bef4 v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
17: 0x103091fec Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
18: 0x10302679c Builtins_JSBuiltinsConstructStub [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
19: 0x10310ef2c Builtins_ConstructHandler [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
20: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
21: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
22: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
23: 0x106fee41c 
24: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
25: 0x106fed74c 
26: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
27: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
28: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
29: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
30: 0x106fee41c 
31: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
32: 0x106fed74c 
33: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
34: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
35: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
36: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
37: 0x106fee41c 
38: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
39: 0x106fed74c 
40: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
41: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
42: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
43: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
44: 0x106fee41c 
45: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
46: 0x106fed74c 
47: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
48: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
49: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
50: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
51: 0x106fee41c 
52: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
53: 0x106fed74c 
54: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
55: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
56: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
57: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
58: 0x106fee41c 
59: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
60: 0x106fed74c 
61: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
62: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
63: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
64: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
65: 0x106fee41c 
66: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
67: 0x106fed74c 
68: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
69: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
70: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
71: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
72: 0x106fee41c 
73: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
74: 0x106fed74c 
75: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
76: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
77: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
78: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
79: 0x106fee41c 
80: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
81: 0x106fed74c 
82: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
83: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
84: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
85: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
86: 0x106fee41c 
87: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
88: 0x106fed74c 
89: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
90: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
91: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
92: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
93: 0x106fee41c 
94: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
95: 0x106fed74c 
96: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
97: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
98: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
99: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
100: 0x106fee41c 
101: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
102: 0x106fed74c 
103: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
104: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
105: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
106: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
107: 0x106fee41c 
108: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
109: 0x106fed74c 
110: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
111: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
112: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
113: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
114: 0x106fee41c 
115: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
116: 0x106fed74c 
117: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
118: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
119: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
120: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
121: 0x106fee41c 
122: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
123: 0x106fed74c 
124: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
125: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
126: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
127: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
128: 0x106fee41c 
129: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
130: 0x106fed74c 
131: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
132: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
133: 0x103033088 Builtins_LoadIC_NoFeedback [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
134: 0x103106778 Builtins_LdaNamedPropertyHandler [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
135: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
136: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
137: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
138: 0x106fee41c 
139: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
140: 0x106fed74c 
141: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
142: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
143: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
144: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
145: 0x106fee41c 
146: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
147: 0x106fed74c 
148: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
149: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
150: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
151: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
152: 0x106fee41c 
153: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
154: 0x106fed74c 
155: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
156: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
157: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
158: 0x103023a24 Builtins_ArgumentsAdaptorTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
159: 0x10302ac54 Builtins_InterpreterEntryTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
160: 0x103023a24 Builtins_ArgumentsAdaptorTrampoline [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
161: 0x1030d2cdc Builtins_PromiseFulfillReactionJob [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
162: 0x10304ae58 Builtins_RunMicrotasks [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
163: 0x1030283e8 Builtins_JSRunMicrotasksEntry [/Users/leif.hanack/.nvm/versions/node/v14.15.4/bin/node]
164: 0x150008000 


Debug Information:
    OS: macOS, v11.1
    Node Version: v14.15.4
    Ghost Version: 3.40.5
    Ghost-CLI Version: 1.15.3
    Environment: development
    Command: 'ghost start'

Additional log info available in: /Users/leif.hanack/.ghost/logs/ghost-cli-debug-2021-01-17T01_54_28_740Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.
> 

Trying it with Node v12.20.1 results in another error: dyld: lazy symbol binding failed: Symbol not found: _usdt_create_provider

> ghost install local
✔ Checking system Node.js version
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v3.40.5
✔ Finishing install process
✔ Configuring Ghost
✔ Setting up instance
✖ Starting Ghost
One or more errors occurred.

1) GhostError

Message: 
dyld: lazy symbol binding failed: Symbol not found: _usdt_create_provider
  Referenced from: /Users/leif.hanack/dev/neweramabs/ghost/versions/3.40.5/node_modules/dtrace-provider/src/build/Release/DTraceProviderBindings.node
  Expected in: flat namespace

dyld: Symbol not found: _usdt_create_provider
  Referenced from: /Users/leif.hanack/dev/neweramabs/ghost/versions/3.40.5/node_modules/dtrace-provider/src/build/Release/DTraceProviderBindings.node
  Expected in: flat namespace



Debug Information:
    OS: macOS, v11.1
    Node Version: v12.20.1
    Ghost Version: 3.40.5
    Ghost-CLI Version: 1.15.3
    Environment: development
    Command: 'ghost install local'

Additional log info available in: /Users/leif.hanack/.ghost/logs/ghost-cli-debug-2021-01-17T13_53_40_185Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.
> 

When I use node 12 instead of 14 the error looks like this one Install Ghost-CLI Error

@strug did you install node under Rosetta? As far as I know node.js doesn’t support the M1 processor natively yet (at least for any releases earlier than node 15).

Otherwise I’m not sure what to suggest. I’ve been running and developing Ghost on an M1 processor since the laptops were released without issue with node installed under rosetta.

To check which arch your node binary is compiled to you can use lipo with your node binary path, eg:

❯ lipo -archs /Users/kevin/.nvm/versions/node/v12.19.1/bin/node
x86_64

:see_no_evil: :stuck_out_tongue_winking_eye: Thanks a lot for spotting it!

After installing node v14 for x86_64, ghost runs locally:

> nvm uninstall 14
> arch -x86_64 zsh 
> nvm install 14
> nvm alias default 14
> ghost install local
2 Likes

Super helpful, thanks for sharing!

Got this working in a similar fashion, here’s my steps:

  1. Open the Terminal info panel and check the “Open using Rosetta” option
  2. Open Terminal and use nvm to install Node v14 (ensure to uninstall that version if you already tried)
  3. Quit Terminal and uncheck “Open using Rosetta”
  4. Open Terminal again and switch to Node v14 using nvm
  5. Install ghost-cli, done!

Not sure if this is the “right way” but it’s working well for me and seems the best of both worlds, older version of Node installed while still running arm :muscle:

1 Like

^ I am incredibly grateful for this post :) Setting up a new M1 machine is a roller coaster. Thanks, David.

One quick note that I found helpful for any others going through this… As shown in this article, you can duplicate the terminal app and rename to something like ‘rosetta terminal’ and set that one to open using rosetta. This allows you to switch between types easily in the future if/when needed.

1 Like

Great advice @strug :heart_eyes: