Git Product home page Git Product logo

Comments (4)

Janjs avatar Janjs commented on June 24, 2024 2

Removing react-native-cli globally did the trick! Thank you @raedle.

from playtorch.

raedle avatar raedle commented on June 24, 2024

Hi @Janjs, thanks for reporting the issue!

  1. The npx (or npm) seems to be using the yarn registry. You can verify this by running the following command:
npm config get registry

which should log the default npm registry: https://registry.npmjs.org/.

  1. Try if the following works for you:
npm_config_registry=https://registry.npmjs.org npx torchlive-cli init MyFirstProject
  1. What are your versions for node, npm, and npx? (e.g., node --version)

from playtorch.

Janjs avatar Janjs commented on June 24, 2024

Hi @raedle thank you for the cool library and the quick response!

  1. I get https://registry.npmjs.org/ when running npm config get registry.
  2. Same a similar error, now with npm:
    error An unexpected error occurred: "https://registry.npmjs.org/react-native-template-react-native-template-pytorch-live: Not found".
  3. node v14.16.0, npm and npx 8.1.4

from playtorch.

raedle avatar raedle commented on June 24, 2024

@Janjs, any chance react-native is installed globally?

  1. You can check it with
npm list -g react-native

which should be (empty) and log something like the following:

/Users/$USER/.nvm/versions/node/v14.18.1/lib
└── (empty)

You can check all globally installed packages with the following command:

npm list -g --depth=0

Also make sure to check the globally installed packages with yarn:

yarn global list

If react-native is installed globally, remove it and try again.

  1. If you tried the above and still get the error An unexpected error occurred: "https://registry.npmjs.org/react-native-template-react-native-template-pytorch-live: Not found", please try adding the --ignore-existing flag to force npx to ignore any locally installed versions of the CLI and use the latest.

from playtorch.

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.