android - Cannot use Bitnami Node.js for building Cordova App. Because npm not recognized -
i downloaded node.js , apache ant bitnami. , set environmental variables android sdk, java jdk, apache ant , node.js.
i have checked path echo %path% command in cmd , results as
- c:\programdata\oracle\java\javapath;
- c:\windows\system32;
- c:\windows;
- c:\windows\system32\wbem;
- c:\windows\system32\windowspowershell\v1.0\;
- c:\program files\microsoft sql server\110\tools\binn\;
- c:\program files (x86)\windows live\shared;
- c:\program files(x86)\winscp\;
- c:\program files (x86)\windows kits\8.1\windows performance toolkit\;
- c:\program files\java\jdk1.8.0_74\bin;
- c:\bitnami\apache-ant-1.9.2-bin\apache-ant-1.9.2;
- c:\softwares\android-sdk_r24.0.2-windows\android-sdk-windows\tools;
- c:\softwares\android-sdk_r24.0.2-windows\android-sdk-windows\platform-tools;
- c:\bitnami\nodejs-0.12.2-0;
but showing this,
- c:>npm -v
- 'npm' not recognized internal or external command, operable program or batch file.
please suggest fixing this.
thanks
found it.
the path npm , cordova present in nodejs\node_modules folder. refer paths use_nodejs file. please follow steps.
open command prompt windows. , type c:\>set. can system variables , paths.
open use_nodejs windows batch file c:\xxx\bitnami\nodejs-0.12.2-0 , type c:\>set, can system variables , paths looking different.
compare variables , paths both command prompt , can ideas of paths.
change path in windows command prompt setx node_home "c:\bitnami\nodejs-0.12.2-0\nodejs\node_modules" use_nodejs command promt paths. change whatever paths want add.
Comments
Post a Comment