I am recently playing with ionic2 and had this error “Unable to run spawn commandError: spawn npm ENOENT” while I was setting up my first app. Thought I can put it here and hopefully other people could benefit from this post.
Unable to run spawn commandError: spawn npm ENOENT
I didn’t dive deep into ionic2 source code to find the root cause, but it looks like there was a command error in the package installation script. (This could be a bug in this particular version v2.0.0-beta.23 only) Hence, the solution is, simply go into the app directory and run “npm install” manually.