Open
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
root@strike:~/strike# npm run build:frontend
> strike@0.0.1 build:frontend
> esbuild ./client/src/VotingApp.mjs --minify --bundle --format=esm --outfile=./src/public/bundle.js
sh: 1: esbuild: Permission denied
root@strike:~/strike# npm --version
8.5.4
Expected Behavior
root@strike:~/strike# npm run build:frontend
> strike@0.0.1 build:frontend /root/strike
> esbuild ./client/src/VotingApp.mjs --minify --bundle --format=esm --outfile=./src/public/bundle.js
src/public/bundle.js 73.4kb
⚡ Done in 57ms
root@strike:~/strike# npm -v
6.14.16
Steps To Reproduce
No response
Environment
- npm: 8.5.4
- Node.js: v14.18.1
- OS Name: Linux strike 5.4.0-104-generic dedupe: get deps from shrinkwrap #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- System Model Name: ubuntu
- npm config:
npm config ls
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.14.16 node/v14.18.1 linux x64"
; node bin location = /usr/bin/node
; cwd = /root/strike
; HOME = /root
; "npm config ls -l" to show all defaults.
workaround
downgrading npm@6 fixes the problem