Open TimDaub opened 2 years ago
We will need more info to replicate this. Is esbuild
a dependency of your package? What does your package.json look like? Have you installed the dependencies? With what command?
esbuild is locally installed and accessible via npm scripts. which esbuild
yields nothing as it wasn't installed globally. I did the two commands one after each other after downgrading npm to v6.
We need a way to replicate this locally. If I install esbuild into a package w/ npm@6 and then use npm@8 to run it it works fine.
~/D/n/s/esb $ npx npm@6 install esbuild
~/D/n/s/esb $ npm pkg get scripts.foo
"esbuild"
~/D/n/s/esb $ npm run foo
> esb@1.0.0 foo
> esbuild
Usage:
esbuild [options] [entry points]
the permission denied
portion of the error makes it look like the esbuild
bin script isn't executable. you can try removing your node_modules
and re-running npm i
to see if npm will fix it for you, or chmod +x node_modules/.bin/esbuild
to manually fix it yourself
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Expected Behavior
Steps To Reproduce
No response
Environment
; node bin location = /usr/bin/node ; cwd = /root/strike ; HOME = /root ; "npm config ls -l" to show all defaults.