Comments (25)
I think I understand why this one's happening
from npx.
No need to be sorry, your report also added one very important piece of that windows puzzle. Thanks! 🎉
from npx.
This is fixed, and will be included in the next release.
Source: I'm literally on Windows right now. 😂
from npx.
I'm not really loyal, I'm just too lazy to reboot and I don't trust VMs to be good enough to do real cross-platform work.
Ironically, the npx build and release scripts don't run on Windows, so I'll have to run a new release after I'm done doing Windows stuff today. ;)
from npx.
You bet but I'm afk right now. Got plans for rest of day but can look early tomorrow my time. I'm sorry. 🙁
from npx.
The first screen shows the js file being run. This is probably the same problem I had today (npm-cli.js
was being opened in my editor by which
). This should be solved with changes in calling the js file so it's the same as #58.
The second screen is almost the same as #58 so I suppose there is a common denominator in which
again.
The last screen is the same problem as #60.
from npx.
@katemihalikova, thank you. I think you're spot on. I missed #60 when I looked through the few issues. Since this is fairly covered then, I suspect it could just be closed as a duplicate, @zkat, but will defer to you to make that call for sure. Sorry for the noise. =(
from npx.
Unfortunately, npx v9.1.0 still fails on my Windows 7 with the message Command failed: c:\Utils\Node\node_modules\npx\node_modules\npm\bin\npm-cli.js config get cache --parseable
(where c:\Utils\Node\
is the path to Node.js) after a bit of trying to run Windows Scripting Host.
from npx.
So it still tries to run the file in its associated program instead of node.. I'll try to look into it more then. Thanks for reporting!
from npx.
@zkat, lol, welcome! This must be a bit of an out-of-body experience for a loyal Mac user? =P
from npx.
And thanks for the fix. =P
from npx.
I hear you on the reboot. =(
from npx.
lol I have a few more fixes to do with Windows, it seems. Probably better that I'm taking my time with this anyway, I guess.
from npx.
ok. [email protected]
should have fixed this problem. Please file another issue if you find more Windows stuff. I want that platform to work super well for folks <3
from npx.
Yeah, seems to be fixed in v9.2.1, congratulations. 🎉
from npx.
Different, but not quite there for me:
from npx.
Oh bollocks.
I even told myself I needed to remember to bring the path escaping along. I totally forgot. Sorry again lol
from npx.
No worries. Happy to check it out with the next fix.
from npx.
@simonua can you give 9.2.2 a whirl?
from npx.
@zkat, just checked with 9.2.2
from npx.
I'm gonna go mope for a while now. I'll try again on Monday I guess. lol.
from npx.
@simonua I've filed #84 to track this separately. I'll spend some more time combing through Windows issues. I think I didn't run into this because my npm is installed into C:\Users\kat\...
, so there's no spaces 🙃
from npx.
Confirmed all cases to be working. It's nice that it appears to prefer a globally-installed module rather than attempting to pull from the registry or extract from cache.
from npx.
This issue has resurfaced in npx version 9.6.0.
Once again this version (bundled with npm v5.5.1) tries Windows Script Host (i.e. runs a script in JavaScript's default system handler) instead of using Node.js path that npx should have in its process.argv[0]
.
Screenshot (after using npx npmtree fidohtml
to test):
It does not say Command failed: . . .
in the console afterwards, it just says null
.
from npx.
However, it only happens in npmtree's own directory (cloned from GitHub) and does not happen in any other directory. Could be a separate issue. Should I open a separate issue?
from npx.
Related Issues (20)
- How to tell what binary gets executed?
- Accessing contents of a binary package
- npx -p touch nodetouch gulpfile.js
- --no-install should be default behavior HOT 1
- Won't traverse to parents if dir has package.json?
- Is this project dead? HOT 6
- Scoped packages, with "install" in the title, trigger "npm install"
- TypeError: Cannot read property 'loaded' of undefined
- Feature Request: support --prefix like npm, to run npx in another base directory
- Too many vulnerabilities HOT 4
- `---no-install` also when the package exists
- Cannot find module 'internal/util/types' when doing npm install -g npx
- npx rimraf fails as part of prepare script when publishing
- After removing space in path I'm getting this issue...
- Benefit of this over npm run? HOT 5
- Why doesn't npx work with @vue/cli?
- Webpack-cli postinstall script fails to run
- Minor typo on auto-fallback.js
- is there a way to use npx to run local version of node?
- cannot run "npx @babel/cli" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npx.