You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] npx add confirmation to proceed everytime #4619
➜ docusaurus git:(main) node -v
v16.14.2
➜ docusaurus git:(main) npm -v
8.5.0
➜ docusaurus git:(main) npx yarn-deduplicate
Need to install the following packages:
yarn-deduplicate
Ok to proceed? (y) y
➜ docusaurus git:(main) npx yarn-deduplicate
Need to install the following packages:
yarn-deduplicate
Ok to proceed? (y) y
Expected Behavior
The second execution of npx yarn-deduplicate shouldn't ask for a confirmation
Steps To Reproduce
see above
Environment
npm: 8.5.0
Node.js: 16.14.2
OS Name: MacOS 12.1 Monterey
System Model Name: ?
npm config:
; "user" config from /Users/sebastienlorber/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; node bin location = /Users/sebastienlorber/.volta/tools/image/node/16.14.2/bin/node; cwd = /Users/sebastienlorber/Desktop/projects/docusaurus; HOME = /Users/sebastienlorber; Run `npm config ls -l` to show all defaults.
We have been running postinstall: "npx yarn-deduplicate" for a while and this issue only appeared recently for me
I often switch/upgrade Node version with Volta. I was probably on a lower Node v16 version before
It doesn't seem to happen for all packages I try to execute with npx (for example npx npkill does not ask me for any confirmation apart the very 1st time)
Activity
slorber commentedon Mar 25, 2022
Issue asked by @lukekarrys here: #3821 (comment)
Some additional notes:
postinstall: "npx yarn-deduplicate"for a while and this issue only appeared recently for menpx(for examplenpx npkilldoes not ask me for any confirmation apart the very 1st time)fritzy commentedon Mar 29, 2022
I am unable to reproduce on the same versions of Node.js, npm, and OS.
fritzy commentedon Mar 30, 2022
Moving this to priority 2, and @lukekarrys is going to look into it further.
fix(libnpmexec): workspaces support
fix(libnpmexec): workspaces support
fix(libnpmexec): workspaces support
fix(libnpmexec): workspaces support
fix(libnpmexec): fix read mixed local/registry pkg
fix(libnpmexec): fix read mixed local/registry pkg
jihunleekr commentedon May 25, 2022
When the installed package updates its major version, it is reproduced.