No, they're not the same. The difference is significant in the case of a typo.
$ ./node_modules/.bin/cordov
-bash: ./node_modules/.bin/cordov: No such file or directory
$ npx run cordov
Whoops! Someone's uploaded your home directory to their website. I hope it had
nothing important!
NPX
After an ‘npm install cordova’ all ‘npx cordova ..’ ARE calls to
node_modules/cordova ...
> On May 27, 2019, at 5:01 PM, Dmitry Blotsky wrote:
>
> Even if we agree to use NPX for the initial Cordova run, using it in every
> call instead of "./node_modules/.bin/cordova" introduces major
Even if we agree to use NPX for the initial Cordova run, using it in every call
instead of "./node_modules/.bin/cordova" introduces major failure modes.
Dmitry
> On May 15, 2019, at 11:32 PM, Jesse wrote:
>
> I think there is a disconnect on the actual proposal here.
>
> Here's the pr again
In Capacitor docs (from ionic), npx is user everywhere
https://capacitor.ionicframework.com/
El jueves, 16 de mayo de 2019, Jesse escribió:
> I think there is a disconnect on the actual proposal here.
>
> Here's the pr again ( keep the discussion here please )
>
I think there is a disconnect on the actual proposal here.
Here's the pr again ( keep the discussion here please )
https://github.com/apache/cordova-docs/pull/987/files
The only real use of npx as a one-off command would be the call to create a
new app. ie. `npx cordova create dirname ...`
The
In terms of exposure, btw, npx is indeed strictly worse than npm install. It
checks for dependencies, installs them, and runs them: all at every call of a
command. That is more frequent than how often anyone runs npm install, and is
more overhead than running a shell command directly.
From a
If it’s any convincing data: none of React Native, Ionic, Angular, Ember,
Meteor, or Vue mention npx.
They all recommend npm install -g or some variant using more mature tools.
I agree that it would be a piece of cake for us to instruct people to install
cordova for the local user, or to use
Given how contentious this has become, I think our best approach would be
to continue with our global install expectation, and add documentation on
a) what to do if you have issues with `npm i -g cordova` [1]
b) document how to do local dependencies and use npx ( this might be a good
blog post as
Hi Dmitry,
I second you on this.
On Tuesday, May 14, 2019, Dmitry Blotsky wrote:
> I'm really glad this discussion lit up, because it clearly shows that this
> issue isn't settled.
>
> I personally have few opinions about the "best" solution here, but I
> firmly believe that npx is a
I feel pretty strongly that npx is a significant improvement to the
developer experience of using Cordova, and resolves a bunch of cases that
have been causing problems for years.
Encouraging people to install Cordova globally results in permissions
problems on Linux when using nodeJS installed
I'm really glad this discussion lit up, because it clearly shows that this
issue isn't settled.
I personally have few opinions about the "best" solution here, but I firmly
believe that npx is a non-starter for these 2 reasons:
1. It is strictly less secure than the status quo, and all
Our DX is not good and this proposal would have the potential to have a
positive impact on that. I'm sorry that you're not convinced yet.
Because I don't want to skip back and forth between GitHub and the
mailing list, I'll address your points here.
- When you start a new project, unless you
I am very sorry to say that I am still not convinced about this idea.
I just raised some concerns in a recent comment in:
https://github.com/apache/cordova-docs/issues/838
And I think I am not the only one right now.
As I said in cordova-docs#838, I would favor that we mention using
`npx
I have already started working on a PR to make the necessary changes to
the documentation, as I was under the impression that consensus
regarding this issue was already reached:
https://github.com/apache/cordova-docs/pull/987
Specifically this might be of interest:
Also thanks for the comprehensive write-up Oliver!
Yeah, I am good with a move to recommend npx.
I just ran thru the steps and everything seems to work fine with it.
One other reservation I had was just about network usage, and being
sensitive to places where bandwidth during the day is
Thanks for that structured write-up, Oliver. You saved me from writing all
of that myself.
+100 on all those points
Oliver Salzburg schrieb am Fr., 10. Mai 2019,
11:01:
> I don't see how third-party tools like nvm or nvm-windows play a role in
> this. If those tools have defects, so be it, but
My comment about nvm-windows was related to Jesse's comment about people
using nvm or similar tools to manage node and needing to globally install
npx, anyway, it's no longer true, as long as users have node 8 and npm 5.2,
no matter what they use for managing their node versions.
As long as we
I don't see how third-party tools like nvm or nvm-windows play a role in
this. If those tools have defects, so be it, but that shouldn't steer a
decision when the tools in question ship with the official tools that we
use (NodeJS).
This holds especially true if the issues have already been
While that is correct, nvm-windows indeed had problems with npx not
working after it was first added to node - so Julio's was indeed true
in the past.
Luckily it was fixed, so even we lowly Windows users now can use npx.
Am Fr., 10. Mai 2019 um 09:48 Uhr schrieb Oliver Salzburg
:
>
> npx ships
npx ships with Node.
On Fri, May 10, 2019, 00:33 Jesse wrote:
> Hello Dmitry,
>
> In my mind, cordova-cli is intended to be installed globally, in situations
> where that is not is possible we could *maybe* recommend that users use
> npx, but I don't think it's a great experience. btw, npx
Afaik nvm-windows also supports npx for quite some time [1], with
1.1.7 it works for every new-ish node I installed.
[1]
https://github.com/coreybutler/nvm-windows/commit/ce756027a816042ed41c3ee60b18d0ebc2599c2b
Am Fr., 10. Mai 2019 um 02:09 Uhr schrieb julio cesar sanchez
:
>
> npx is included
npx is included in npm 5.2 and greater (the one that comes with node 8 I
think)
Looks line nvm-windows doesn’t include it for some reason, but nvm for
macOS does.
El El vie, 10 may 2019 a las 0:33, Jesse escribió:
> Hello Dmitry,
>
> In my mind, cordova-cli is intended to be installed globally,
Hello Dmitry,
In my mind, cordova-cli is intended to be installed globally, in situations
where that is not is possible we could *maybe* recommend that users use
npx, but I don't think it's a great experience. btw, npx needs to be
globally installed ... so ok!?
This is really just a symptom of a
Hi all,
It’s been a while. :) I hope you’re all doing well.
I’m writing to start some mailing list discussion about this GitHub issue:
https://github.com/apache/cordova-docs/issues/838.
Please say if we should continue talking there, and we can do that instead.
If not, let’s continue here.
24 matches
Mail list logo