Error initializing app : There was an error with the spawned command

I have been trying to create an Ionic 2 project with sidemenu template when I encountered this error.

Creating an Ionic 2.x app in C:\Users\user_id\IonicProj\DemoTut based on the sid
emenu template.

Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-sidemenu/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

I searched for plausible solutions to solve this problem, but have returned empty handed.
The versions for the different frameworks are as below,

  1. node version : 6.10.1
  2. npm version : 3.10.10
  3. ionic version : 2.2.2
  4. cordova version : 6.5.0
  5. Operating system used : WIndows 7 enterprise edition.

The installation was done using admin priveleges. Can someone please help me with this problem?