'IONIC CORDOVA RUN ANDROID' deletes APP-SCRIPTS - ionic-framework

I installed app-script by NPM INSTALL, but when I run 'IONIC CORDOVA RUN ANDROID' it deletes a lot of folders
I have no idea what's happening, I need this
Before run the command
enter image description here
After run the ionic command
enter image description here

Related

How can we build an ionic project in Ubuntu 18.04, which is developed and built in windows environment?

i am trying to build an ionic project in ubuntu 18.04. but I am getting an error like it cannot build in ubuntu environment.
I have rebuild node-sass folder as well. After that I am getting error as gulf.file cannot find.
here is the error i am getting
copy files from your old project folder except node_module
then paste them in the new path
run
if cordova not installed
npm install -g cordova
then run
npm install -g ionic
npm install
if any error shows
run
npm audit fix

Ionic and cordova(Latest versions) installation problems

I'm trying to install the Ionic framework with npm. It successfully installed. But when I try installing new versions of Ionic and Cordova, I was unable to install and Error messages are coming frequently in the ubuntu terminal.
I had a same problem but i recovered it using following command:
npm install -g cordova ionic --verbos
if its not work then you need to try yarn. you can download and install form https://yarnpkg.com/lang/en/docs/install/ this website
After install, run the following command
yarn add global cordova
yarn add global ionic

Prefix -g is not recognized as an internal and external command in npm

enter image description hereenter image description hereI was trying to implement an ionic framework project.
First I installed nodejs in my system.
Then I typed npm -v in cmd.
I always get an error that Prefix -g is not recognized as an internal and external command, even if i have configured the path in Environment Variable in system properties.
With this issue I successfully installed gulp, bower, cordova.
But while I install ionic using npm install -g cordova ionic, I always get the error message.
Please help me out of this.
Thanks
Abinas
After the Node.js installation you must to install Npm and only after you can ask for npm version. Usually on Windows it is so.

ionic is not recognized as an internal or external command operable program or batch file

I have tried to install ionic framework. I was done with my first step by executing the command (installed node.js).
First command: npm install -g cordova ionic
But the second command is not executing instead stating"ionic is not recognized as an internal or external command operable program or batch file "
Second command:ionic start myApp tabs
I request to help me out
I'm using windows 10 for developing, I solved it by adding the npm global packages folder:
%USERPROFILE%\AppData\Roaming\npm
to the environment variable Path
I assume you are trying to install ionic in windows.
I think you could try to install it alone, without cordova, and then try it again.
npm install -g ionic
Regards
İf "ionic" is installed;
1-Download and upgrade nodejs to latest version.
download nodejs
2- run command:
npm uninstall -g ionic
3-Clear these files:
C:\Users\user\AppData\Roaming\npm
C:\Users\user\AppData\Roaming\npm-cache
3-run command:
npm install -g #ionic/cli
İt is done:)
SET PATH=C:\Program Files\Nodejs;%PATH%
Is worked for me on Windows 10 :)

Unable to add platform ionic platform add Android

Getting below error when running command ionic platform add android
Error: ENOENT, no such file or directory _____\.cordova\lib\android\cordova\3.5.1\VERSION'
I am providing step by step installation of ionic along with cordova.
Have a look it may help you :
First install node to get started using this link
open cmd to install cordova using following command
$ sudo npm install -g cordova
(Drop sudo from the above command if running on Windows)
install ionic using command
$ sudo npm install -g ionic
Create project after selecting directory where project file will be stored,
through CMD,by following command
ionic start {project name} {template type} e.g
ionic start todo blank
Once your project is created go to your newly created project: cd .\new project. for e.g.
D:\Projects>cd.\todo
Now you have to add both android and ios to your project in order to test the build so you need to follow below commands
ionic cordova platform add android
ionic cordova platform add ios
I think in your case you are missing step 5.