Reputation: 21
I am getting following error while creating new project whith ionicFramework, any one have idea how to resolve it.
DOWNLOADING: https://github.com/driftyco/ionic-app-base/archive/master.zip
C:\Users\...\AppData\Roaming\npm\node_modules\ionic\lib\ionic.js:256
if<res.statusCode !==200> {
TypeError: Cannot read property 'statusCode' of undefined
atRequest._callback(C:\Users\...\AppData\Roaming\npm\node_modules\ionic\lib\ionic.js:256
ic\lib\ionic.js:257:13)
at self.callback (C:\Users\...\AppData\Roaming\npm\node_modules\ionic\lib\ionic.js:256
ic\lib\ionic.js:129:22)
at Request.EventEmitter.emit (events.js:95:17)
at ClientRequest.self.clientErrorHandler (C:\Users\...\AppData\Roaming\
npm\node_modules\ionic\node_modules\request\request.js:239:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at CleartextStream.socketErrorListener (http.js:1547:9)
at CleartextStream.EventEmitter.emit (events.js:95:17)
at SocketPair.<anonymous>(tls.js:1384:19)
at SocketPair.emit (events.js:92:17)
at SocketPair.maybeInitFinished(tls.js:977:10)
Upvotes: 2
Views: 2608
Reputation: 693
Check if you have 'tutorial' in your Ionic Starter templates :
ionic start --list
If It's not in the list, you must add it to the list by Updating your Ionic Framework:
sudo npm install -g ionic
ionic lib update
sudo npm install -g cordova
Upvotes: 0
Reputation: 6976
Update your version of the ionic CLI tool first. Alternatively you could manually start the app.
bower install
to make sure bower assets are up to datenpm install
to install assets for gulp to build sass (optional if you don't use sass)Thats just what the ionic start
command does in a nutshell.
Upvotes: 5