-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx not working after install in 1.1.6 #293
Comments
Are you compiling from source? The code base for 1.1.6 has support, but I have not yet cut a release that has the npx support. If you're compiling from source and seeing this issue, then there's definitely a bug. Otherwise, it just isn't there yet. I'm hopeful I'll find some time tonight to cut the new release. |
@coreybutler any news? same problem here, can't update to anything newer than node 8.1.4 because npm breaks. |
As a workaround, |
Npx is still not there anywhere on the path after an install of nvm and using latest LTS node I'm on Windows 10 btw |
No news - other than the fact the npm issues are upstream. @borekb suggested the only viable option at the moment. There's another issue open re: npm and the issues, so I suggest following along there. |
Thanks. I've been using @borekb's work-around without problems |
not working for me, will use the workaround for now, but also following |
Same here. Used workaround. |
One more workaround without installing npx globally:
|
Using @oleh-shalyhin's workaround gives me:
everytime I run npx... It works though. |
Everything works perfectly for me, I just installed windows and installed nvm, the only problem was the missing NPX command from the PATH, I did use the My recommendation here is: if it is a bug please add the workaround in the README.md so everyone can be aware of this. Cheers. |
this issue was resolved for me with using nvm 1.1.7 (#288 (comment)) |
The original issue still stands (for older versions of npm/npx) because, well, they're just broken (an npm thing). If you can't get a newer version of npx, upgrade to at least NVM4W 1.1.7. npm also changed their github repo, which was a hard coded link into NVM4W. v1.1.7 supports both the new and old link. |
My Environment
I'm using NVM4W version:
I have already...
My issue is related to (check only those which apply):
not working in normal cmd terminal as well as in Cmder.
Expected Behavior
After installing a node version 8.2 or higher (in this case 8.2.1) that ships with npx, npx should work.
Actual Behavior
In
C:\Users\%UserName%\AppData\Roaming\nvm\v8.2.1
there is no command file for npx.In
C:\Users\%UserName%\AppData\Roaming\nvm\v8.2.1\node_modules\npm\bin
npx is available though.Steps to reproduce the problem:
Install nvm4w 1.1.6 prerelease, which should have npx support according to #288
Call
nvm install 8.2.1
Call
nvm use 8.2.1
and acknowledge the UAC windowsCall
npx --version
npx cannot be called.
The text was updated successfully, but these errors were encountered: