I recently installed ionic framework.
My laptop already had GIT, node and npm installed and all of them have been updated to latest.
When running ionic start my IonicApp1 tabs following the Get Started instruction on their website, I ran into the following error and this stopped from creating the app.
Any idea? Thanks!
Ionic recently changed its cli try ionic start myproject blank --type ionic1 for a blank demo app
Related
Today I want to start with ionic Framework but soon I realize that I am unable to install Ionic framework properly getting error
First I install nods js in my computer. (perfectly)
Then I open node js command prompt and add this line npm
install -g cordova ionic and get
Then I run this line ionic start myApp blank and get this error
Then I try to run my app so I get this error
I came accross an issue today, when i installed ionic and cordova for a test project. i did this
npm install -g cordova ionic
then
ionic start myapp tabs
Problem that i faced was that nothing happened, i searched around but could not find a reasonable answer. this is what i found:
http://stackoverflow.com/questions/27155486/ionic-start-projectname-not-working-with-ionic-framework
https://forum.ionicframework.com/t/ionic-start-myapp-tabs-not-working/3205
But i believed it is an environment issue. So i cleanedup. removed old builds and did a fresh build but nothing much of success.
Questions:
1) Where is default location for creating the app folder is defined when we do 'start ionic app-name'
2) If app-name folder is not created and command completes without any errors, what should be next course of action.
i hope some one can help out.
ENV: WINDOWS7, NODE.JS, IONIC, CORDOVA
I solved my problem (stated above) by upgrading node.js and reinstalling ionic package after removing it.
Second i also found out that to specify path to app location, below command will work.
ionic start [absolute-path-to-app-folder] [template-optional]
e.g.
ionic start c:\myApp will create a blank app in C drive
Hope this can help someone. i spent a week digging this out.
I moved my ionic2 app from mac to windows pc with nodemodules and tried to run using npm run android, but getting an error as shown below
Here is my ionic info:
Your system information:
Cordova CLI: 6.4.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1-201610241941
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.31
OS: Windows 7 SP1
Node Version: v6.2.0
I ran following commands:
npm uninstall ionic
npm cache clean
npm install -g ionic#latest
but still ionic-app-scripts is not recognized in my cmd. What am I doing wrong here? It works great in my mac but moving to pc, I'm frustrated.
Any advice would be helpful. Thank you.
Here is my project repo, If I cloned the same app from my repo it's building fine but moving the source code not working.
Update #1
Now getting a different error.
I add this answer just in case so other SO users with the same issue could find the answer easier. Just like #nyluje recommends in this post, to fix
Cannot read property 'AssetUrl' of undefined
you should take away "^" sign in front of "dependencies" and "devDependencies" in package.json, and run npm install again.
When attempting to run any tns command I get the following error:
I'm running Windows 10 with node.js version 4.4.5. It was previously working until I upgraded node.js from 4.4.0 to 4.4.5. Any ideas? I'm just working through the Groceries tutorial and have tried everything except for deleting the project and starting over from scratch.
You could try to upgrade NativeScript tools and TNS modules
following those instruction from the documentation: here. After you upgrade your modules you should delete /node_modules and /platforms folders from your project.
I am using the standard ionic template project that is generated from by WebStorm.
When I make simple changes (like adding a test alert(...)) in app.run(...) in app.js and run the following set of commands, the changes are not reflected when the app runs or is deployed to the phone.
The following commands are ran from the root of my project.
gulp
ionic build android
ionic run|emulate android
Is there something I am missing that would not reflect the changes I am making?
Recently experienced this issue. What helped me is removing the android platform:
ionic platform rm android
then, re-adding it.
ionic platform add android
make sure you delete the app from your device before running/installing again, then run:
ionic run android
hope this helps
So I was able to determine why this issue was occurring.
As I was testing on my android phone (Galaxy to be specific), everytime I would run the following command...
ionic run android
It would appear to deploy/install to my device, and it would open up the app. Howevever, it wasn't actually deploying the newest version as I was already running the previous version in the background.
The fix for this was to make sure that the application was not running (in foreground or background). This required me to make sure that if it was running, that I stop it before testing any changes.
Faced the same issue after upgrading cordova and ionic to the latest versions.
ionic info
Downgraded cordova and ionic versions to match my previous environment, it started taking the changes all over again.
commands:
npm install -g cordova#6.2.0
npm -d install -g ionic#2.0.0-beta.35
Everything works well with the following combination for me.
Hope this helps someone!!!
Just remove all files inside www folder and run ionic lab to update then, for some reason when I run cordova run android the version deployed was the old one, but when I remove the files in www folder the new version was deployed.