ssrwpo / ssr

SSR - Router with SSR for Node & Meteor
https://ssrwpo.github.io/ssr/
MIT License
93 stars 16 forks source link

Keep having warning on npm peer requirements #85

Open kwunyeung opened 6 years ago

kwunyeung commented 6 years ago

I keep having the npm peer requirements warning after adding ssrwpo:ssr. I have followed the installation procedure to install the required packages and I confirm that they are in the package.json dependency list. However, it keeps warning me the followings.

W20171226-12:59:44.546(8)? (STDERR) WARNING: npm peer requirements (for ssrwpo:ssr) not installed:
W20171226-12:59:44.546(8)? (STDERR)  - lodash@4.x not installed.
W20171226-12:59:44.547(8)? (STDERR)  - moment@2.x not installed.
W20171226-12:59:44.547(8)? (STDERR)  - react@16.2.0 installed, react@15.x needed
W20171226-12:59:44.547(8)? (STDERR)  - react-dom@16.2.0 installed, react-dom@15.x needed
W20171226-12:59:44.547(8)? (STDERR)  - react-i18next@7.3.0 installed, react-i18next@4.x needed
W20171226-12:59:44.548(8)? (STDERR)  - express@4.x not installed.
W20171226-12:59:44.548(8)? (STDERR)  - i18next@8.x not installed.
W20171226-12:59:44.549(8)? (STDERR)  - i18next-node-remote-backend@0.x not installed.
W20171226-12:59:44.549(8)? (STDERR)  - i18next-xhr-backend@1.x not installed.

How can I get rid of these warnings?

Thanks!

cbilotta commented 6 years ago

Hello, It is a misconfiguration of the npmPeerRequirements.

If you could do a pull request, that would be great.

kwunyeung commented 6 years ago

Hi,

Where can I find the npmPeerRequirements to edit it?

cbilotta commented 6 years ago

https://github.com/ssrwpo/ssr/blob/master/src/shared/utils/peerDependencies.js

kwunyeung commented 6 years ago

Seems not the case. The versions for the 3 react related packages can be resolved but not for lodash, express, i18next, i18next-node-remote-backend and i18next-xhr-backend. These packages are in my package.json and already installed in node_modules. Does it related to this issue?

https://github.com/tmeasday/check-npm-versions/issues/15