Closed broofa closed 5 months ago
It seems you're using temporary installed pretty-quick
instead of project level?
@JounQin 'Not sure what you mean by "temporary" vs. "project level".
The repro recipe declares a direct dependency
on pretty-quick
, so it's installed locally as part of the project's own node_modules
.
@broofa
/private/tmp/foo/node_modules/pretty-quick/lib/index.js:12
I mean the above doesn't seem to be executed at project level?
Can you please provide an online reproduction?
Stackblitz example here (error shows in terminal pane): https://stackblitz.com/edit/stackblitz-starters-3df8vj?file=package.json
What it looks like on my laptop:
Sorry I don't quite understand, what is type pretty-quick
and how does it making pretty-quick
executable without npx
prefix?
And isn't the stackblitz demo working as expected? There is no .git
folder just like your screenshot.
Ugh, sorry... I forgot that pretty-quick
needs a source control directory to work from. While I did get this error while working in a repository, I don't remember which one or what the conditions were that led to the problem. And in my haste to provide a reproduction, I failed to include a directory so... I'm just going to close this out. I'll reopen if/when I see the issue again.
FWIW, type
is a built-in bash
command that gives you the path to the given command. - I.e. All I'm doing here is showing that when I type "pretty-quick
", it's being run out of the local "node_modules" folder.
Getting the above error, possibly as a result of using
corepack
. This is withnode@20
andnpm@10
(full environment details below.)Related: #93
Recipe for reproduction
cd
into itpackage.json
:corepack enable
npm install
pretty-quick
...Environment