Phonegap Install errors - npm Error: ENOENT

ERROR:
npm WARN engine phonegap@2.9.0rc1-0.12.0: wanted: {"node":">=0.10.0"} (current:
{"node":"v0.8.20","npm":"1.2.11"})
 

npm  Error: ENOENT phonegap\node_modules\shelljs\package.json

FIX:

As you see the warning itself shows version incompatibility. This warning further down will fire few errors with installing 'package.json' and others. Fixing the version of nodejs will fix the most errors.

So install new version  for nodejs or update the nodejs with nvm.
 
npm cache clean - will not work in this case as the 

Nodejs 0.10.29 doesn't show install steps in the console unless you set it up.

ERROR:

“‘npm’ is not recognized as an internal or external command, operable program or batch file.”  

FIX:

--- Restart  the system. Some times the Path doesn't take effect until a restart in windows.

Comments