Giter Site home page Giter Site logo

Comments (7)

byCedric avatar byCedric commented on July 1, 2024 20

Forwarded this issue npm/cli#7537, I'll also backport & release the fix ASAP.

If others are running into this as well, the fastest fix for now is to downgrade npm from 10.8.0 (current latest) to 10.7.0. That would avoid this issue for now, until we released a workaround, or npm has released a fix.

You can do that with npm install --global [email protected], or npm i -g [email protected]

from expo.

byCedric avatar byCedric commented on July 1, 2024 5

Heads up, [email protected] will likely (not released yet) ship with a fix. See npm/cli#7537

For now, only SDK 51 has been patched. We will likely hold off on backporting this to older versions, as npm seems to fix it soon-ish.

from expo.

elektromob avatar elektromob commented on July 1, 2024 3

@byCedric I would like to add that running npx expo prebuild --template https://github.com/expo/expo/tree/main/templates/expo-template-bare-minimum only once makes all further npx expo prebuild and npx expo run:android commands work without a problem.

I would also like to add that the same problem happens when npx eas-cli build --local --platform android --profile $PROFILE is invoked as well, where $PROFILE is either preview or development. This wasn't specified in the initial body of the issue, so I apologize.

from expo.

byCedric avatar byCedric commented on July 1, 2024 1

Yep, I just found the issue @elektromob. It's npm 10.8.0 returning a different response than npm <10.7.0. (Note the missing quotes)

image

from expo.

elektromob avatar elektromob commented on July 1, 2024

Update

Following is a temporary fix:

npx expo prebuild --template https://github.com/expo/expo/tree/main/templates/expo-template-bare-minimum

from expo.

byCedric avatar byCedric commented on July 1, 2024

Hi @elektromob, thanks for the report. It's interesting what's going on here, my best guess is that either Linux or npm decided to change its output. Basically, how this works is that it should be parsing the string, with the quotes. Meaning that it's technically just a valid JSON string, e.g.

image

But, we can make that less brittle.

from expo.

expo-bot avatar expo-bot commented on July 1, 2024

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

from expo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.