After diligently following the steps outlined on
https://facebook.github.io/react-native/docs/getting-started
I proceeded with a fresh npm installation and executed the npm update
command
Subsequently, I entered the command npm install -g expo-cli
Although I encountered multiple warnings regarding missing Linux packages, it didn't pose any issue as I am utilizing Windows 10 Home 64bit
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d1bfb6a3bebafcb3b8bffcb5b0a3a6b8bffcb8b0e2e391e3ffe3ffe9">[email protected]</a> (node_modules\expo-cli\node_modules\@expo\ngrok-bin-darwin-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a9c7cedbc6c284cbc0c784cdc8dbdec0c784c0c89a9be99b879b8791">[email protected]</a>: wanted {"os":"darwin","arch":"ia32"} (current: {"os":"win32","arch":"x64"})
Next, I initiated the command expo init HelloWorld
, only to encounter the following error
C:\Users\####\AppData\Roaming\npm\node_modules\expo-cli\node_modules\formidable\lib\incoming_form.js:1
(function (exports, require, module, __filename, __dirname) { d.
^
SyntaxError: Invalid or unexpected token
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
Uncaught Error C:\Users\####\AppData\Roaming\npm\node_modules\expo-cli\node_modules\formidable\lib\incoming_form.js:1
(function (exports, require, module, __filename, __dirname) { d.
^
SyntaxError: Invalid or unexpected token
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
This unforeseen error has left me perplexed. Could it be an oversight in the installation process?