npx @capacitor/cli plugin:generate fails with Gcli.txt in windows
See original GitHub issueEnv:
npm 6.14.9
node v14.15.3
windows 10 (build 19042.746)
using npx @capacitor/cli plugin:generate
generates this output:
npx @capacitor/cli plugin:generate
C:\myDir>rstcli.exe -I 1>Gcli.txt
1
and the content of Gcli.txt
is
Could not get system information.
Could not get system info
My Current workaround is to install @capacitor/cli globally and use npx cap plugin:generate
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
npx @capacitor/cli resolving to c:\windows\rstcli.exe
It appears npx has some seldom-used behavior: It prefers to run whatever it finds in $PATH . How it arrives at the decision...
Read more >Npx @capacitor/cli plugin:generate command displaying error?
I am trying to create a new plugin in capaciter for all of this A plugin for Android , iOS , Web &...
Read more >Capacitor CLI Version Error in Ionic. What to do?
I'm trying to add android platform to an Ionic (Angular) project. ionic capacitor add android. It recognizes ionic capacitor add and requests me...
Read more >Capacitor CLI - ionic.zone
Most of the interactions you will have with Capacitor will be through its Command Line Interface or CLI: npx cap (or npx capacitor...
Read more >@capacitor/cli - npm
Capacitor CLI. The Capacitor command-line interface should be installed locally and executed through npm scripts. npm install @capacitor/cli ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I found what the problem was, maybe this helps another person.
Looks like the Intel Rapid Security Storage software created a file in
c:\windows\
calledcli.bat
, since it was on the pathnpx
it was resolved when npm calledcli
in the temporal folder for@capacitor
.The content of
cli.bat
was:I deleted
c:\windows\cli.bat
and now everything works.Also it could work with:
npx --ignore-existing @capacitor/cli
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.