Saturday 17 June 2017

Install ATOM and run project in ionic through command line

npm install -g gulp
npm install -g cordova
npm install -g  ionic

Atom install

    sudo dpkg -i atom-amd64.deb
    sudo apt-get -f install


cd path of project

For create project run below command

ionic start {Project name} {template type}

for template type refer this link https://ionicframework.com/docs//intro/tutorial/

path of project : ionic serve OR npm run ionic:serve
path of project : ionic cordova run android

IF error occurs for gradle than fire below command in project path
path of project : sudo apt-get install gradle


If any config file change than run below command

cordova platform rm android

after it run below command

path of project : ionic cordova run android

 if fire this command ionic serve and get below error             
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (57)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.5.0

than remove node_modules folder from project and fire command like npm install

No comments:

Post a Comment