Giter Club home page Giter Club logo

Comments (5)

innocenzi avatar innocenzi commented on June 14, 2024 1

Note: after reading the docs, I found you can use --ignore-existing to deny npx from looking into $PATH.

from preset.

babichjacob avatar babichjacob commented on June 14, 2024

I experience this problem and never mentioned it because I thought it was just a problem with my own setup. Do npm install --save-dev apply before running npx apply ... as a workaround. (Then uninstall it later.)

from preset.

innocenzi avatar innocenzi commented on June 14, 2024

Hey, yeah, this issue has been reported to me before. This is quite annoying, I'm not exactly sure what's the best way to handle it.

There are a few workarounds:

  • As @babichjacob said, install apply locally so npx can use it
  • Use use-preset instead of apply, which is an alias on NPM that I maintain

I should probably document that for macOS users.

from preset.

widyakumara avatar widyakumara commented on June 14, 2024

Hi,

Just tried use-preset but it doesn't work.

Screen Shot 2021-02-07 at 21 37 25

I end up using @babichjacob's solution. Kudos.

@innocenzi :

Too bad since I think this is a very useful project.

According to this page:

The apply command appeared in 4.2BSD.

The shown date is April 4, 1994. So two things for sure:

  • This is not a macOS specific issue.
  • The command has been around for a very long time.

from preset.

innocenzi avatar innocenzi commented on June 14, 2024

Ah, well, that's unexpected. But after thinking about it, I'd rather advice installing apply locally than confusing people about the use-preset alias, anyway. Not exactly sure why it doesn't work though.

This is not a macOS specific issue.

From my understanding, macOS has parts of FBSD and that's where the issue comes from. So any OS based on FBSD will have this problem. Thanks for pinning down the issue, I'll update the docs. 👍

from preset.

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.