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
global npx installation is shadowed by nodejs on Windows #21001
> npx --version
npx: installed 1 in 11.516s
The "path" argument must be of type string. Received type undefined
9.7.1
> npm i -g npx
+ npx@10.2.0
updated 1 package in 70.955s
> npx --version
npx: installed 1 in 9.741s
The "path" argument must be of type string. Received type undefined
9.7.1
Wrong repo. npx is a dependency of npm and is installed per directions of npm, see #14235. If you want to see it changed, open an issue over at npm/npm.
The changes to the installer were made by an npm employee - by the author of npx, in fact. If something needs to change, discuss it with npm and they'll update the installer next time they upgrade npm in node.
Activity
bnoordhuis commentedon May 28, 2018
Wrong repo. npx is a dependency of npm and is installed per directions of npm, see #14235. If you want to see it changed, open an issue over at npm/npm.
saschanaz commentedon May 28, 2018
@bnoordhuis, I opened this because the Node.js installer for Windows adds special alias for npx and that conflicts with npm because of path order.
gcm npxpoints to nodejs where it should point to npm:bnoordhuis commentedon May 29, 2018
The changes to the installer were made by an npm employee - by the author of npx, in fact. If something needs to change, discuss it with npm and they'll update the installer next time they upgrade npm in node.