windows ionic environment to create a new project (a)

Installation cordova ionic

npm install -g cordova ionic 

If the installation error
Taobao error, please use mirroring or open ladder, and then clear the cache npm install again
error because the installer is too much wall, the need over the wall
solution one: use Taobao mirror

$ npm install -g cnpm --registry=https://registry.npm.taobao.org

re-install

Solution two: Reinstall the ladder after clearing the cache npm

$ npm cache clean --force

After installing the
start of new projects

ionic start Project Title Project Type (blank blank / tabs with tabs / sidemenu with navigation)

Example:

	ionic start myapp sidemenu

New Project
Finally, the installation will need to log in (no account can Quguan network Register a)
No account of the need to register at the official website
and then do

ionic login

Log in again you can log in successfully;
login successful
then execute

cd myapp
ionic serve

In the browser, see the page it shows the success of the project started

Published 58 original articles · won praise 20 · views 110 000 +

Guess you like

Origin blog.csdn.net/fly_wugui/article/details/86750578
Recommended