-
-
Notifications
You must be signed in to change notification settings - Fork 105
Puzzling output: "npx: installed 1 in 1.419s" #148
Comments
Recently started using npx and was wondering the same thing. Is it because it might be installing (or trying to install) dependencies even though they're already installed? If that's the case I would like to disable this. (I know it's a feature of npx to download/install dependencies on the fly, but I don't need it and I'm worried it would cause delay where internet speed/ping isn't ideal.) Edit: never mind, there's already Edit2: However |
It seems to be installing a "prefix" package. It runs (in npm/bin/npx.cmd) Not sure why. Is Edit: I think command is meant to be |
This sounds like a duplicate of #144 |
@styfle You're right. |
I found that this issue can be fixed by rearranging your path: C:\Users\Arif\AppData\Roaming\npm;C:\Program Files\nodejs\ |
@artulito where did you do this? which env/windows variable? is it different for GitBash vs command line vs power shell? |
@hendrics on the system env variables editor, to access it quickly, type 'env' in your start menu. This will work globally. Also, I think this issue is fixed already. Just upgrade to the latest node version. |
Rearranging the path didn't fix it for me. |
@zkat Any update on this? The paths are in different categories, NPM is bound to my user, whereas NodeJS is bound to the machine, so the order is not relevant in this case (I assume local runs before global anyway). |
@artulito Upgrading does not fix the problem. |
Rearranging the path DID fix it for me. Thanks |
@Darkle This is mine
|
@silkfire the order is absolutely relevant. In windows, the global/system paths runs before the local/user paths. In which case, by rearranging the paths, I'm using my local version of npm & npx, which fixed this issue for me. |
rearranging my PATH per @artulito and restarting fixed this for me. |
I'm using NVM for Windows so I had to rearrange |
Whenever I run npx it always says it "installed 1", even when I'm just asking it for help:
Installed 1 what? Why?
The next message it outputs 'The "path" argument must be of type string' is also completely spurious as I understand it.
It would be great to get rid of this confusing output or say what's really going on.
Windows 7 command prompt, node: v9.4.0, npx: 9.7.1.
Cheers
The text was updated successfully, but these errors were encountered: