Just got Expo up and running for the first time, encountered an error right after setting it up

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?

Answer №1

Implemented npm install formidable and then transferred the generated folder to the location where expo stores its version of formidable, successfully resolving the issue.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Potential Unhandled Promise Rejection with AxiosError

Currently, I am tackling a react native project that features a signup and login screen. The snippet of code provided below pertains to the signup page where I encountered an issue while trying to establish a connection to the MongoDB database. In this i ...

Rapid polygon merging with JavaScript

I have a large geoJSON file containing polygons and multi-polygons, totaling 2.5 MB in size. My goal is to merge all these shapes to display them on a map within a web browser environment. In my Python workflow, I am using shapely.ops.unary_union which p ...

Discovering the presence of new versions of npm packages requires a few simple steps

My package.json file includes the current versions of dependencies: "dependencies": { "bootstrap": "3.1.1", "electron": "1.3.1" } I am aware that newer versions of Bootstrap and Electron are available. This raised the question: Is there a method to ...

The Node.js Twitter Bot encountered an issue: Twitter streaming request error 410 - something went wrong

After running the bot successfully for approximately 8 hours, I encountered an unexpected issue when trying to run it again: events.js:183 throw er; // Unhandled 'error' event ^Error: Bad Twitter streaming request: 410 at Object.exports.make ...

This function named error is implemented in native code

My website is built in C# using asp.net. When the Onchange() event is triggered on the Dropdownlist, I call this jQuery function which displays an error: function error(){[native code]} <script type="text/javascript"> function GetDescription ...

Using Vue to alter data through mutations

Greetings! I am currently in the process of developing a website for storing recipes, but as this is my first project, I am facing a challenge with modifying user input data. My goal is to create a system where each new recipe added by a user generates a u ...

The Stepper StepIconComponent prop in MUI is experiencing issues when trying to render styles from the styles object, leading to crashes in the app

Struggling to find a way to apply the styles for the stepper component without using inline styles. I attempted to replicate Material UI's demo, but encountered an error. The code from Material UI's demo that I want to mimic is shown below: http ...

retrieve the classname by tapping into the parsed JSON

Being a newcomer to this technology, I am embarking on my first project. My task involves calling an API and receiving a large parsed JSON file. Within this extensive JSON response (which contains HTML code), I need to extract a specific class from the te ...

Is it possible to refresh AdSense banner when the router changes?

Is there a way to reload the AdSense banner ads when the router changes? I've been encountering issues trying to re-add the script and HTML properly. Any guidance on how this should be done would be greatly appreciated... This is just a test for one ...

Displaying JavaScript Countdown in PHP Table

I have a database table with multiple fields and I am looking to create a countdown using the integer value from one of the fields (in minutes). How can I loop through and display the countdown for each row in a PHP table utilizing these values, with the a ...

The data input from the HTML is not being correctly transferred to the modal

I am trying to transfer the reservation id from an HTML element to a modal window. When I click "cancel" next to a reservation, a modal should appear showing the reservation id. However, the modal pops up without displaying the reservation id. Can anyone h ...

Encountering an issue while attempting to send a POST response through Node Express, specifically an error related

Encountering an error after completing registration, specifically when attempting to respond to the POST request. (user is added to database successfully) express deprecated res.send(status, body): Use res.status(status).send(body) instead auth\regi ...

Obtaining a Buddypress user's name through a JavaScript file

When working with my buddypress PHP templates, I typically fetch the username of a user using their ID like this: <?php echo bp_core_get_username( '{{userID}}' ) ?> However, I now need to access the username from an external JavaScript fi ...

Using Javascript to populate textboxes with the value of checkboxes

Within my web application, there is a series of checkboxes that, when selected, populate a textbox located above them. If more than one checkbox is checked, their values are displayed in the textbox separated by commas. These checkboxes are structured as ...

assign a fontawesome icon to a temporary placeholder

I have tried multiple solutions from various sources, but nothing seems to be working. My goal is to apply the fontawesome icon f14a to a specific field. What am I doing wrong? document.getElementById('property_charges').setAttribute('class ...

Having trouble sending an array with res.send() in NodeJS

My User model contains a field that stores an array of course IDs like this: "courseId" : [ "5ac1fe64cfdda22c9c27f264", "5ac207d5794f2910a04cc9fa", "5ac207d5794f2910a04cc9fa" ] Here is how my routes are set up: router.get('/:userid/vendo ...

breaking up various dates into specific formatting using React

I need to convert a series of dates Wed Nov 13 2019 00:00:00 GMT+0000 (UTC),Tue Nov 19 2019 00:00:00 GMT+0000 (UTC),Tue Nov 19 2019 00:00:00 GMT+0000 (UTC) into the format 11/13/2019, 11/19/2019, 11/19/2019 ...

Utilizing Node.js for Gmail API: Extracting Inline/Embedded Images

When working with email data, one approach is to use the gmail.users.messages.get() method. After fetching the email data, there are two functions used to handle the payload. function getBody(message) { var encodedBody = ''; try{ i ...

Encountered a issue during the installation of an NPM module

I am a beginner in the world of web development. I attempted to set up an npm module using the command npm install grunt-contrib-watch --save-dev, however, I encountered the following error: npm WARN npm npm does not support Node.js v0.10.37 npm WARN npm ...

Retrieve data from a div element on a webpage using specific parameters

As I work on a form that includes various filters and a "Start" button in C# / ASP.NET MVC, my goal is to display database data in a partial view using Ajax when the button is clicked, based on certain parameters. Within this partial view, there is a link ...