question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx @capacitor/cli plugin:generate fails with Gcli.txt in windows

See original GitHub issue

Env:

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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
distantecommented, Feb 3, 2021

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\ called cli.bat, since it was on the path npx it was resolved when npm called cli in the temporal folder for @capacitor .

The content of cli.bat was:

rstcli.exe -I >Gcli.txt

I deleted c:\windows\cli.bat and now everything works.

Also it could work with: npx --ignore-existing @capacitor/cli

0reactions
ionitron-bot[bot]commented, Nov 11, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found