Hello ncao,
I am use following version of CLI, Please help me i not create ionic 2 project.
**Version:**ordova CLI: 6.5.0
C:\ionic>ionic -v
2.2.2
C:\ionic>cordova -v
6.5.0
C:\ionic>node -v
v7.8.0
C:\ionic>npm -v
4.5.0
Error:
C:\ionic>ionic start cutePuppyPics --v2
Creating an Ionic 2.x app in C:\ionic\cutePuppyPics based on the tabs template.
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip
Installing npm packages (may take a minute or two)…
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
ncao
April 18, 2017, 8:50am
2
The start command is as follow:
$ ionic start MyIonic2Project [command]–v2 with command :
tabs : a simple 3 tab layout
sidemenu: a layout with a swipable menu on the side
blank: a bare starter with a single page
super: starter project with over 14 ready to use page designs
tutorial: a guided starter project
so you need to put C:\ionic>ionic start cutePuppyPics blank --v2
Hello ncao,
I am getting following Error:
C:\ionic>ionic start MyIonic2Project [command]–v2
Creating an Ionic app in C:\ionic\MyIonic2Project based on the [command]–v2 template.
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic-starter-[command]--v2/archive/master.zip
Not found: https://github.com/driftyco/ionic-starter-[command]--v2/archive/master.zip (404)
Please verify the url and try again.
Please verify you are using a valid URL or a valid ionic starter.
View available starter templates: ionic start --list
More info available at:
http://ionicframework.com/getting-started/
https://github.com/driftyco/ionic-cli
ncao
April 18, 2017, 9:29am
4
You need to replace the [command] with the options, for example “blank” if you want to start with blank template
like this
ionic start MyIonic2Project blank–v2
1 Like
Hello Nacao,
Thank for the update , i am try it today and let you know if issues.
ok Thanks Nacao. and i am use windows-10 operating system.
Hello nacao,
I am getting error when i am create new ionic 2 project Please help me to how to solve this problem.
C:\ionic>ionic start cutePuppyPics --v2
Directory already exists: C:\ionic\cutePuppyPics
Would you like to overwrite the directory with this new project?
(yes/no): yes
Creating an Ionic 2.x app in C:\ionic\cutePuppyPics based on the tabs template.
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip
Installing npm packages (may take a minute or two)…
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
C:\ionic>npm -v
4.5.0
C:\ionic**>ionic -v**
2.2.2
C:\ionic>node -v
v7.8.0
C:\ionic>cordova -v
6.5.0
C:\ionic>ionic info
Your system information:
ordova CLI: 6.5.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.8.0
Xcode version: Not installed
Please add --verbose
to the ionic start
command so we can get more useful error message.
Are you in China by chance?