install peerDependencies from top (closes #6323)