Comments (5)
Note: after reading the docs, I found you can use --ignore-existing
to deny npx
from looking into $PATH
.
from preset.
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.
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 sonpx
can use it - Use
use-preset
instead ofapply
, which is an alias on NPM that I maintain
I should probably document that for macOS users.
from preset.
Hi,
Just tried use-preset
but it doesn't work.
I end up using @babichjacob's solution. Kudos.
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.
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)
- ERR_PRESET_FILE_NOT_FOUND Could not find a preset file in "undefined". HOT 1
- Programmatic usage
- Hey programatic API is a 404 HOT 1
- replace-variable fails if git.config is missing user.name or user.email HOT 5
- Cannot use `defineAction` outside `preset.ts` file HOT 6
- Ability to import external (versioned) packages inside preset HOT 1
- Getting `contexts.at is not a function` when using with `laravel:vite` or `laravel:inertia` presets HOT 1
- @preset/cli exits with a 0 exit code on failure HOT 5
- prompt action
- Add a way to detect which package manager was used to run the preset
- Prompt Action submits data if user tries to exit
- Prompt Action doesn't handle backspace HOT 3
- SelectPromt Action doesn't handle `escape` & `ctrl +c` HOT 2
- SelectPrompt Submit Action prepends empty line break, which causes layout shift
- How to use other repository instead of github HOT 1
- Support `--path` to use a preset in a subdirectory HOT 1
- Make API global in preset projects
- Auto-retry once without SSH
- Could not find a preset file in "[object Promise]" HOT 3
- Nested Preset HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from preset.