Code Monkey home page Code Monkey logo

Comments (2)

chriskrycho avatar chriskrycho commented on June 11, 2024

Hi @YingchenWang007, sorry about the delayed response here. Did you get this figured out? I have not seen a case where volta list finds a local copy of a tool in a package but is unable to run it, but that sounds like a super annoying bug.

If you are still having this issue, (a) do you have a repository we can look which it consistently reproduces with, and (b) can you confirm that you ran npm install or yarn install in the package and that it is executable at node_modules/.bin/tsc or similar?

from volta.

andreeib avatar andreeib commented on June 11, 2024

I had this issue as well, I was trying to run globally installed zx in a project directory that had zx in package.json without running npm install first cause it would take a long time due to huge amount of packages.

My temporary solution was to only install zx in the project:
npm install --no-package-lock --no-save zx
Then running zx worked.

But a better solution would be to have a flag or env variable for volta to make it use the global version of a tool:
VOLTA_USE_GLOBAL=1 zx
Or maybe by default if the tool is not in node_modules run the global tool.

from volta.

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.