[SOLVED] Npm install fails in project directory


I have created a ionic project and developed in windows and maintained the code in github. Everything works find,

Until recently we started build the projects in mac.

I just did npm install in project root directory
and see the following errors
peerinvalid The package clean-css@2.2.23 does not satisfy its siblings’ peerDependencies requirements!
peerinvalid Peer cordova-uglify@0.1.9 wants clean-css@2.2.2


found problem. installed most recent version of nodejs, which cannot install node-sass.

convert back to older version works