Ionic freezes on "installing npm packages"

Am trying to create a new project:

ionic start MyIonic2Project tutorial --v2

But the project is never created, npm freezes as You can see on the screenshots:

image

and later

image

My setup is following

image

1 Like

Looks like the npminstall command needs the space in script )

Could you provide some more info?

What’s the OS version, node version, ionic-cli version, npm version

ionic info

Paste the out put here.

sure:

C:\Users\aberec\ionic_projects\VERSION2>ionic info

Your system information:

Cordova CLI: 6.3.0
Ionic CLI Version: 2.0.0-beta.35
Ionic App Lib Version: 2.0.0-beta.19
OS: Windows 7 SP1
Node Version: v6.3.1

Hi Mike

Can You suggest anything I can do to solve this?

1 Like

Having the same issue with it hanging on “Installing npm packages…” when I run:

ionic start myApp --v2

Ionic Info below:

Your system information:

Cordova CLI: 6.2.0
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.7.0
Xcode version: Xcode 7.3.1 Build version 7D1014

Hi …
I am facing the same issue now .
IS there a solution for this ?

Your system information:

Cordova CLI: 6.3.1
Ionic CLI Version: 2.1.0-beta.2
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 8.1
Node Version: v4.5.0

Creating Ionic app in folder C:\MobileApps\Ionic\Ionic Lab Projects\test02 based
on sidemenu project
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic2-starter-sidemenu/archive/master.
zip
[=============================] 100% 0.0s
Installing npm packages…
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
Caught exception:
undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

@aslani_mobil @vinoth_ramasamy same happens to me while working on windows 7 with ionic-2.

Still, I have not found any solution.

Did anyone find a solution for this?

Thanks in advance.

Hi…
Found what is the issue with this when I tried installing using verbose command.
The error started with unsupported version of python that was there in my machine .

I installed latest Python V3.0… . But the ionic start needs Python2.5 — 3.0 I think .
I uninstalled python beta and installed the stable python 2.7.12
Every thing worked fine.

I saw that we can also set npm / ionic-cli to use a specific version of the python by specifying the path.

image

I am getting the same error… any solution?

ionic start --v2 --ts projectname is hanging on "installing npm packages (may take a minute or two)"
but this is hanging over 10 minutes
http://localhost:8900/ is writing me in the wizard
Unexpected token i in JSON at position 48
does anybody has tried that and seen the same error

Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version 2.2.0
OS: Windows 7
Node Version: v6.9.2

For me the WIZARD has an issue which is not working, Try without the wizard.

having the same issue. Did you manage to fix this issue ?