Ionic freezes on "installing npm packages"

#1

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:

and later

My setup is following

1 Like
#2

Looks like the npminstall command needs the space in script )

#3

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.

#4

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

#5

Hi Mike

Can You suggest anything I can do to solve this?

1 Like
#6

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
#7

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

#8

@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.

#9

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.

#10

I am getting the same error… any solution?

#11

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.

#12

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