ionic2 spawn npm ENOENT error

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

ionic2 spawn npm ENOENT error

Solution

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.


facebooktwittergoogle_plusredditlinkedin

Wayne Hong

Passionate Java full stack developer.