因此,我正在遵循本指南(https://www.youtube.com/watch?app=desktop&v=TjZmq1d8Nyg&feature=youtu.be),并且我已经在这里(2:40)到达了这一部分,我必须在其中输入在我的macOS 终端中
我不得不使用第二个命令行,即:
npx pkg . -d --targets node14-macos-x64 --output bin/macos/metaplex
. 我不断收到此错误消息,不知道如何解决它,这是进入下一步的重要步骤。此错误消息反复显示。任何帮助将不胜感激,如果需要更多信息,请随时询问。谢谢!这是错误消息:
at new Script (vm.js:103:7)
at Socket.<anonymous> ([eval]:18:19)
at Socket.emit (events.js:375:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at Socket.Readable.push (internal/streams/readable.js:204:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
/snapshot/js/node_modules/react-native-fetch-api/src/utils.js:54
export { createBlobReader, drainStream, readArrayBufferAsText };
^^^^^^
SyntaxError: Unexpected token 'export'
at new Script (vm.js:103:7)
at Socket.<anonymous> ([eval]:18:19)
at Socket.emit (events.js:375:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at Socket.Readable.push (internal/streams/readable.js:204:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
> Warning Failed to make bytecode node14-x64 for file /snapshot/js/node_modules/react-native-fetch-api/src/utils.js```