I have cleaned my run npm remove ...
and npm -g remove ...
to remove everything related to npm
. But I still got below error when I try npm install generator-webapp
npm ERR! peerinvalid The package yo does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants yo@>=1.0.0
npm ERR! peerinvalid Peer [email protected] wants yo@>=1.2.0
Any idea how to fix it? I searched for a while, and the only suggestion is to clean my npm
packages.
I just ran up against the same problem and after some random kicks and punches, was able to get things working.
Step 1: Remove Yeoman
Step 2: Clear NPM Cache
Step 3: Upgrade NPM to latest version
Step 4: Install Yeoman
After doing this, things kicked into life. I saw the exact same error so I am confident this will work for you. Also, not sure but step 2 may be optional.
Hope this helps, let me know if you hit any other snags!
The problem is not in the npm packages. It is the npm itself. The npm in Ubuntu repository is too old. Use this guide to install the latest one, and everything works.