Git Product home page Git Product logo

Comments (2)

ds300 avatar ds300 commented on May 22, 2024

Thanks for the report!

npm prepare -- react-navigation should be npm run prepare -- react-navigation

That's my bad, the README is wrong. I'll update it now.

As for the first issue, that's a new one. The error message is a little misleading. It implies that you might be using an old npm but really it just means that it can't find any lock files. Do you definitely have one? i.e. a package-lock.json, npm-shrinkwrap.json, or yarn.lock? If so, then perhaps you could do me a favour:

  1. edit node_modules/patch-package/dist/detectPackageManager.js and put the following line at the top of the detectPackageManager function:

    console.log("app root path:", appRootPath)
    
  2. Then re-run patch-package and let me know whether the value that is logged is different from the root folder of your project (where the package.json is)?

from patch-package.

ixje avatar ixje commented on May 22, 2024

Got it working. What happened is that I was on npm 4.3.0 when I tried to use the package. I updated to npm >= 5 and did not touch any packages since then. It turns out that the lock file is not generated until you at least once touch the node_modules or package.json

In their words:

package-lock.json is automatically generated for any operations where npm modifies either the node_modules tree, or package.json.

After removing and reinstalling a package it could run and created a patch file :)

from patch-package.

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.