Open mifkys opened 7 years ago
I have the same issue. Wondering if it's solved already
same here:
@ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.9.2
System:
Node : v6.11.3
npm : 3.10.10
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
same here:
cli packages:
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.5
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v8.9.3
npm : 5.6.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : D:\AndroidSDK
Misc:
backend : legacy
The true error is occurring deep in a tree of subprocesses.
npm ERR! Cloning into 'C:\Users\user\AppData\Local\Temp\npm-17188-2e931d29\git-cache-f713dd3e\c45331b95555c5c77b4ed4ca690236a9b077ec4b'... npm ERR! error: cannot spawn sh: No such file or directory npm ERR! fatal: unable to fork
This appears to be an issue only on Windows, unless someone says otherwise.
So, what setups do people have? Is everyone using Git for Windows? If so, what version? If not, please describe the shell program you're using, how git was installed, etc.
If anyone else is having this issue, install git for windows from git scm, and make sure to use the option to use the bash shell for git. Then, right click in your ionic directory and click Git Bash Shell. From there, you can run your commands as normal.
This is a workaround that's worked for me for the time being.
I had same problem with running CMD on Windows 10 as an administrator.
Today I tried "Node.js command prompt" from start menu (run as Administrator), it got installed successfully this time.
Description:
After call 'ionic cordova plugin add <any plugin's GitHub url>' I've got error:
Error returns on install any plugin from GitHub. For example:
But executing
cordova plugin add ...
withoutionic
works fineSteps to Reproduce:
ionic cordova plugin add ...
Output:
My
ionic info
:Other Information: